Logo Search packages:      
Sourcecode: kadu version File versions

Public Types | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends

AccountShared Class Reference

Inheritance diagram for AccountShared:
Inheritance graph
[legend]
Collaboration diagram for AccountShared:
Collaboration graph
[legend]

List of all members.

Public Types

enum  StorableObjectState { StateNew, StateNotLoaded, StateLoaded }

Signals

void buddyStatusChanged (const Contact &contact, const Status &oldStatus)
void connected ()
void disconnected ()
void fileTransferServiceRegistered ()
void fileTransferServiceUnregistered ()
void protocolLoaded ()
void protocolUnloaded ()
void statusUpdated ()
void updated ()

Public Member Functions

virtual void aboutToBeRemoved ()
 Method called just before this obejct is removed from storage.
Contact accountContact ()
 AccountShared (const QUuid &uuid=QUuid())
void blockUpdatedSignal ()
 Call this method to block calling of emitUpdated method.
AccountDetailsdetails () const
 Returns current details.
void detailsDestroyed ()
void ensureLoaded ()
 Ensures that this object data has been loaded.
void ensureStored ()
 Stores or removes data from storage, depends on shouldStore result.
void fileTransferServiceChanged (FileTransferService *service)
bool hasValue (const QString &name) const
 Check if value is available in XML node (as subnode).
virtual bool isStatusSettingInProgress ()
bool isValidStorage ()
 Returns true if storage point is valid.
ProtocolHandler HasPassword
ProxySettings 
KaduShared_Property (bool, removing, Removing) virtual QString statusContainerName()
ProtocolHandler KaduShared_Property (bool, rememberPassword, RememberPassword) KaduShared_Property(bool
ProtocolHandler HasPassword KaduShared_Property (const QString &, password, Password) KaduShared_Property(const AccountProxySettings &
 KaduShared_PropertyRead (const Identity &, accountIdentity, AccountIdentity) void setProtocolName(const QString &protocolName)
 KaduShared_PropertyRead (const QString &, protocolName, ProtocolName) void setId(const QString &id)
 KaduShared_PropertyRead (const QString &, id, Id) void setPrivateStatus(bool isPrivate)
 KaduShared_PropertyRead (bool, privateStatus, PrivateStatus) KaduShared_Property(Protocol *
template<class T >
loadAttribute (const QString &name) const
 Loads value from XML node (as an attribute).
template<class T >
loadAttribute (const QString &name, T def) const
 Loads value from XML node (as an attribute).
virtual void loaded ()
template<class T >
loadValue (const QString &name) const
 Loads value from XML node (as subnode).
template<class T >
loadValue (const QString &name, T def) const
 Loads value from XML node (as subnode).
virtual int maxDescriptionLength ()
template<class T >
T * moduleData (const QString &module, bool create=false)
 Returns non-storable module data for object.
template<class T >
T * moduleStorableData (const QString &module, QObject *qobjectParent, bool create)
 Loads storable ModuleData data from XML node (as subnode).
void removeAttribute (const QString &name)
 Removes value (an attribute) from XML node.
void removeFromStorage ()
 Removed object from storage.
void removeModuleData (const QString &module)
 Removes non-storable module data from object.
void removeValue (const QString &name)
 Removes value (a subnode) from XML node.
void setAccountIdentity (const Identity &accountIdentity)
virtual void setDefaultStatus (const QString &startupStatus, bool offlineToInvisible, const QString &startupDescription, bool StartupLastDescription)
virtual void setDescription (const QString &description, bool flush=true)
void setDetails (AccountDetails *details)
 Set new details to object.
void setState (StorableObjectState state)
 Sets new state of object.
virtual void setStatus (Status status, bool flush=true)
void setStorage (const QSharedPointer< StoragePoint > &storage)
 Sets arbitrary storage for this object. Sets state to StateNotLoaded.
void setUuid (const QUuid &uuid)
 Updates value of unique identifier of this object.
virtual bool shouldStore ()
 Determines if object is worth to be stored.
StorableObjectState state ()
 Returns current object state.
virtual Status status ()
virtual QString statusContainerName ()=0
virtual QString statusDisplayName ()
virtual KaduIcon statusIcon (const QString &statusType)
virtual KaduIcon statusIcon ()
virtual KaduIcon statusIcon (const Status &status)
virtual QString statusNamePrefix ()
const QSharedPointer
< StoragePoint > & 
storage ()
 Returns storage point for this object.
virtual QString storageNodeName ()
 Returns node name of XML storage of this object.
virtual StorableObjectstorageParent ()
 Returns object that holds parent storage point for this object.
QSharedPointer< StoragePointstoragePointForModuleData (const QString &module, bool create=false)
 Creates storage point object for given module data.
virtual void store ()
 Stores object to storage.
void storeAttribute (const QString &name, const QVariant value)
 Stores value into XML node (as an attribute).
virtual void storeStatus (Status status)
void storeValue (const QString &name, const QVariant value)
 Stores value into XML node (as a subnode).
virtual QList< StatusType * > supportedStatusTypes ()
void unblockUpdatedSignal ()
 Call this method to unblock calling of emitUpdated method.
const QUuid & uuid () const
 Returns unique identifier of this object.

Static Public Member Functions

static AccountSharedloadFromStorage (const QSharedPointer< StoragePoint > &storagePoint)
static AccountSharedloadStubFromStorage (const QSharedPointer< StoragePoint > &storagePoint)

Public Attributes

ProtocolHandler hasPassword
 protocolHandler
ProtocolHandler HasPassword proxySettings

Protected Member Functions

virtual void afterDetailsAdded ()
 Method called after informing manager about new details.
virtual void afterDetailsRemoved ()
 Method called after informing manager about removing old details.
virtual QSharedPointer
< StoragePoint
createStoragePoint ()
 Creates default storage point for object.
void dataUpdated ()
 Call this method when any data was changed.
virtual void detailsAboutToBeAdded ()
 Method called before adding new details.
virtual void detailsAboutToBeRemoved ()
 Method called before removing old details.
virtual void detailsAdded ()
 Method called after adding new details.
virtual void detailsRemoved ()
 Method called after removing old details.
virtual void doSetStatus (Status newStatus)
void emitUpdated ()
 Method called when any data was changed.
virtual void load ()
 Loads object from storage.
void loadStub ()
 Loads object from storage.
virtual void protocolRegistered (ProtocolFactory *protocolHandler)
virtual void protocolUnregistered (ProtocolFactory *protocolHandler)

Private Member Functions

void doSetAccountIdentity (const Identity &accountIdentity)
void doSetId (const QString &id)
void setDisconnectStatus ()
void triggerAllProtocolsRegistered ()
void triggerAllProtocolsUnregistered ()
void useProtocolFactory (ProtocolFactory *factory)

Static Private Member Functions

static void notifyProtocolRegistered (ProtocolFactory *protocolFactory)
static void notifyProtocolUnregistered (ProtocolFactory *protocolFactory)

Private Attributes

Contact AccountContact
Identity AccountIdentity
bool HasPassword
QString Id
short int MaximumImageSize
QString Password
bool PrivateStatus
ProtocolProtocolHandler
QString ProtocolName
AccountProxySettings ProxySettings
bool RememberPassword
bool Removing

Static Private Attributes

static QList
< ProtocolsAwareObject * > 
Objects

Friends

class GaduEditAccountWidget

Detailed Description

Definition at line 46 of file account-shared.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index