Logo Search packages:      
Sourcecode: kmess version File versions  Download package

CurrentAccount Class Reference
[main]

#include <currentaccount.h>

Inheritance diagram for CurrentAccount:

Account

List of all members.


Detailed Description

Data class for session information of the logged in user.

When the user logs into MSN Messenger, the data of the Account class is copied to this class with the copyAccount() method. During the session, all modifications are stored here. When the user disconnects, the data is copied back and eventually saved to disk.

This class also stores session-related data While the user is connected. This includes the contact list state.

Author:
Mike K. Bennett

Definition at line 49 of file currentaccount.h.


Public Types

enum  ChatDirectoryStructure { SINGLEDIRECTORY = 0, BYYEAR = 1, BYMONTH = 2, BYDAY = 3 }

Signals

void accountInvisible ()
void accountOffline ()
void accountOnline ()
void changedChatStyleSettings ()
void changedDisplaySettings ()
void changedEmailDisplaySettings ()
void changedEmoticonSettings ()
void changedFontSettings ()
void changedFriendlyName ()
void changedMsnObject ()
void changedNoEmails ()
void changedNotificationsSettings ()
void changedNowListeningSettings ()
void changedPersonalMessage ()
void changedStatus ()
void changedTimerSettings ()
void changedViewMode ()

Public Member Functions

InvitedContactaddInvitedContact (const QString &handle, const QString &friendlyName, const uint capabilities)
void changeNoEmails (int change)
virtual void copyAccount (const Account *account)
void copyAccountUISettings (const Account *account)
void deleteAccountData ()
bool getAutoreply () const
const QString & getAutoreplyMessage () const
const QString & getChatStyle () const
const QString & getComposeCommand () const
ContactBasegetContactByHandle (const QString &handle) const
const QFont & getContactFont () const
const QString & getContactFontColor () const
QString getContactFriendlyNameByHandle (const QString &handle) const
const ContactBasegetContactLastDragged () const
const ContactListgetContactList () const
const QString getCustomImagePath () const
const QString & getEmailCommand () const
bool getEmailSupported () const
const QString & getEmailUrl () const
const QString & getEmoticonStyle () const
const QString & getExternalIp () const
uint getExternalPort () const
const QFont & getFont () const
const QString & getFontColor () const
QString getFriendlyName () const
bool getGroupFollowupMessages () const
QString getHandle () const
const int & getIdleTime () const
const QString getImagePath () const
const QString & getInboxCommand () const
QString getInitialStatus () const
const QString & getLocalIp () const
const QString getMsnObjectString () const
QString getNewCustomImagePath ()
int getNoEmails () const
const int & getNotificationDuration () const
bool getNotifyContactsChatMessages () const
bool getNotifyContactsChatStart () const
bool getNotifyContactsOffline () const
bool getNotifyContactsOnline () const
bool getNotifyContactsStatus () const
bool getNotifyEmails () const
QString getPassword () const
QString getPersonalMessage () const
const QString & getSaveChatPath () const
bool getSaveChats () const
const int & getSavedChatDirectoryStructure () const
bool getShakeNudge () const
bool getShowAllowedContacts () const
bool getShowContactsByGroup () const
bool getShowEmail () const
bool getShowImage () const
bool getShowMessageTime () const
bool getShowNowListening () const
bool getShowOfflineContacts () const
bool getShowOtherFolders () const
bool getShowRemovedContacts () const
bool getShowSidebar () const
QString getStatus () const
const QString & getTemporaryPassword () const
bool getUseAutologin () const
bool getUseContactFont () const
bool getUseEmoticons () const
bool getUseFontEffects () const
bool getUseHotmail () const
bool getUseIdleTimer () const
bool hasContactInList (const QString &handle) const
bool isDeleted () const
bool isDirty () const
bool isGuestAccount () const
bool isVerified () const
void openMail (const QString &command, const QString &folder, const QString &url)
void openMailAtCompose (QString contactHandle)
void openMailAtInbox ()
void readProperties (KConfig *config, QString handle)
void saveProperties (KConfig *config)
void saveTemporaryPassword ()
void setAccountInformation (QString authorization, QString preferredEmail, QString sid, bool emailSupported, QString externalIp, uint externalPort, QString internalIp)
void setAlertsInformation (bool useIdleTimer, int idleTime, bool shakeNudge, bool showNowListening)
void setAutoreply (bool autoreply)
void setAutoreplyMessage (const QString &autoreplyMessage)
void setChatInformation (bool useContactFont, bool useEmoticons, bool useFontEffects, bool showMessageTime, bool groupFollowupMessages, const QString &chatStyle)
void setChatLoggingInformation (bool saveChats, const QString &saveChatPath, const int &directoryStructure)
void setComposeInformation (QString command, QString folder, QString url)
void setContactList (const ContactList *contactList)
void setEmailInformation (bool useHotmail, const QString &emailCommand, bool showEmail, bool showOtherFolders)
void setEmailUrl (QString postUrl)
void setEmoticonStyle (const QString &emoticonStyle)
void setFont (const QFont &font)
void setFontColor (const QString &fontColor)
void setFontInformation (const QFont &font, const QString &fontColor, const QFont &contactFont, const QString &contactFontColor)
void setFriendlyName (const QString &newName)
void setGuestAccount (bool guestAccount)
void setInboxInformation (QString command, QString folder, QString url)
void setInitialEmailInformation (int noEmailsInInbox, int noEmailsInOtherFolders)
void setInitialStatus (QString status)
void setLoginInformation (QString handle, QString friendlyName, QString password="")
void setNoEmails (int noEmails)
void setNotificationsInformation (bool doNotifyContactsOnline, bool doNotifyContactsStatus, bool doNotifyContactsChatStart, bool doNotifyContactsChatMessages, bool doNotifyContactsOffline, bool doNotifyEmails, int notificationDuration)
void setNotifyContactsChatMessages (bool doNotifyContactsChatMessages)
void setNotifyContactsChatStart (bool doNotifyContactsChatStart)
void setNotifyContactsOffline (bool doNotifyContactsOffline)
void setNotifyContactsOnline (bool doNotifyContactsOnline)
void setNotifyContactsStatus (bool doNotifyContactsStatus)
void setNotifyEmails (bool doNotifyEmails)
void setPersonalMessage (const QString &newMessage)
void setShowAllowedContacts (bool showAllowedContacts)
void setShowContactsByGroup (bool showContactsByGroup)
void setShowImage (bool showImage)
void setShowOfflineContacts (bool showOfflineContacts)
void setShowRemovedContacts (bool showRemovedContacts)
void setShowSidebar (bool showSidebar)
void setStatus (QString status)
void setTemporaryPassword (const QString &temporaryPassword)
void setUseAutologin (bool useAutologin)
void setUseEmoticons (bool useEmoticons)
void setVerified (bool verified)
void updateMsnObject ()

Static Public Member Functions

static void destroy ()
static CurrentAccountinstance ()

Protected Member Functions

void setEmailSupported (bool emailSupported)

Private Slots

void slotInvitedContactLeftAllChats (ContactBase *contactBase)

Private Member Functions

InvitedContactgetInvitedContactByHandle (const QString &handle) const
int getSessionLength () const
void startProcess (QString command)

Private Attributes

QString authorization_
bool autoreply_
QString composeCommand_
QString composeFolder_
QString composeUrl_
const ContactListcontactList_
QString emailUrl_
QString externalIp_
uint externalPort_
QString inboxCommand_
QString inboxFolder_
QString inboxUrl_
QPtrList< ContactBaseinvitedContacts_
QString localIp_
unsigned int loginTime_
int noEmails_
QString preferredEmail_
QString sid_
QString status_

Static Private Attributes

static CurrentAccountinstance_

Friends

class KMessTest

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

Generated by  Doxygen 1.6.0   Back to index