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 }
enum  ChatExportFormat { EXPORT_XML, EXPORT_HTML, EXPORT_TEXT }
 Available chat exporting formats. More...
enum  ContactListDisplayMode { VIEW_BYGROUP, VIEW_BYSTATUS, VIEW_MIXED }

Signals

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

Public Member Functions

InvitedContactaddInvitedContact (const QString &handle, const QString &friendlyName=QString(), const uint capabilities=0)
void changeNoEmails (int change)
virtual void copyAccount (const Account *account)
bool getAutoreply () const
const QString & getAutoreplyMessage () const
const QString & getChatStyle () const
ContactBasegetContactByHandle (const QString &handle) const
const QFont & getContactFont () const
const QString & getContactFontColor () const
QString getContactFriendlyNameByHandle (const QString &handle, FormattingMode mode=STRING_CLEANED) const
const ContactBasegetContactLastDragged () const
const ContactListgetContactList () const
ContactListDisplayMode getContactListDisplayMode () 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 (FormattingMode mode=STRING_CLEANED) const
bool getGroupFollowupMessages () const
QString getHandle () const
bool getHideNotificationsWhenBusy () const
const int & getIdleTime () const
Status getInitialStatus () const
const QString & getLanguageCode () const
int getListPictureSize () const
const QString & getLocalIp () const
const QString getMsnObjectString () const
int getNoEmails () const
const QString & getOfflineImKey () const
const QString getOriginalPicturePath () const
QString getPassword () const
QString getPersonalMessage (FormattingMode mode=STRING_CLEANED) const
const QString getPicturePath () const
const QString & getSaveChatPath () const
bool getSaveChats () const
ChatExportFormat getSaveChatsFormat () const
bool getSaveChatsToFile () const
const int & getSavedChatDirectoryStructure () const
QString getSavedPassword () const
bool getSavePassword () const
bool getShakeNudge () const
bool getShowAllowedContacts () const
bool getShowChatUserPicture () const
bool getShowContactEmail () const
bool getShowContactListBird () const
bool getShowEmail () const
bool getShowEmptyGroups () const
bool getShowHistoryBox () const
bool getShowMessageTime () const
bool getShowNowListening () const
bool getShowOfflineContacts () const
bool getShowOtherFolders () const
bool getShowPicture () const
bool getShowRemovedContacts () const
bool getShowSearchBar () const
bool getShowSessionInfo () const
bool getShowWinks () const
Status getStatus () const
int getTabbedChatMode () const
const QString & getTemporaryPassword () const
bool getTimestampShowDate () const
bool getTimestampShowSeconds () const
const QString getToken (const QString &domain) const
QHash< QString, QString > & getUrlInformation ()
bool getUseAutologin () const
bool getUseChatFormatting () const
bool getUseContactFont () const
bool getUseEmoticons () const
bool getUseFontEffects () const
bool getUseIdleTimer () const
bool getUseListFormatting () const
bool hasContactInList (const QString &handle) const
bool isDeleted () const
bool isDirty () const
bool isGuestAccount () const
bool isVerified () const
void openMail (const QString &folder)
void openMailAtCompose (QString contactHandle)
void openMailAtInbox ()
void readProperties (const QString &handle)
void saveProperties ()
void saveTemporaryPassword ()
void setAccountInformation (QString authorization, QString preferredEmail, QString sid, QString languageCode, bool emailSupported, QString externalIp, uint externalPort, QString internalIp)
void setAutoreply (bool autoreply)
void setAutoreplyMessage (const QString &autoreplyMessage)
void setChatInformation (bool useContactFont, bool useEmoticons, bool showWinks, bool useFontEffects, bool useChatFormatting, bool shakeNudge, bool showMessageTime, bool timestampShowDate, bool timestampShowSeconds, bool groupFollowupMessages, int tabbedChatMode, const QString &chatStyle)
 Set chat information.
void setChatLoggingInformation (bool saveChats, bool saveChatsToFile, ChatExportFormat saveChatsFormat, const QString &saveChatPath, int directoryStructure)
void setContactList (const ContactList *contactList)
void setContactListDisplayMode (ContactListDisplayMode displayMode)
void setContactListOptions (bool showNowListening, bool showContactEmail, bool useListFormatting)
 Set contact list options.
void setDeleted ()
void setEmailInformation (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 setInitialEmailInformation (int noEmailsInInbox, int noEmailsInOtherFolders)
void setInitialStatus (Status status)
void setListPictureSize (int mode)
void setLoginInformation (QString handle, QString friendlyName, QString password=QString())
void setNoEmails (int noEmails)
void setOfflineImKey (const QString &key)
void setOriginalPicturePath (const QString &picturePath)
void setPassword (const QString &password)
void setPersonalMessage (const QString &newMessage)
void setPicturePath (const QString &picturePath)
void setSavedPassword (const QString &password)
void setSavePassword (bool savePassword)
void setShowAllowedContacts (bool showAllowedContacts)
void setShowChatUserPicture (bool showChatUserPicture)
void setShowContactListBird (bool showBird)
void setShowEmptyGroups (bool showEmptyGroups)
void setShowHistoryBox (bool showHistoryBox)
void setShowOfflineContacts (bool showOfflineContacts)
void setShowPicture (bool showPicture)
void setShowRemovedContacts (bool showRemovedContacts)
void setShowSearchBar (bool showSearchBar)
void setShowSessionInfo (bool showSessionInfo)
void setStatus (Status status)
void setStatusOptions (bool useIdleTimer, int idleTime, bool hideNotificationsWhenBusy)
 Set the options on the status.
void setTabbedChatMode (int tabbedChatMode)
void setTemporaryPassword (const QString &temporaryPassword)
void setTokens (const QHash< QString, QString > tokens)
void setUseAutologin (bool useAutologin)
void setUseEmoticons (bool useEmoticons)
void setVerified (bool verified)
void updateMsnObject ()

Static Public Member Functions

static void destroy ()
static CurrentAccountinstance ()
static bool isValidEmail (QString email)

Protected Member Functions

void setEmailSupported (bool emailSupported)

Private Slots

void slotInvitedContactLeftAllChats (ContactBase *contactBase)

Private Member Functions

InvitedContactgetInvitedContactByHandle (const QString &handle) const

Private Attributes

bool autoreply_
const ContactListcontactList_
QString emailUrl_
QString externalIp_
uint externalPort_
QList< InvitedContact * > invitedContacts_
QString languageCode_
QString localIp_
int noEmails_
QString offlineImKey_
QString preferredEmail_
QString sid_
Status status_
QHash< QString, QString > tokens_
QHash< QString, QString > urls_

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