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

CurrentAccount Class Reference

#include <currentaccount.h>

Inheritance diagram for CurrentAccount:

Account

List of all members.


Detailed Description

A singleton giving the account used to connect to the network and current-session-only relevent data.
Author:
Mike K. Bennett

Definition at line 33 of file currentaccount.h.


Public Types

enum  ChatDirectoryStructure { SINGLEDIRECTORY = 0, BYYEAR = 1, BYMONTH = 2, BYDAY = 3 }
enum  PROXYTYPE { TYPE_HTTP = 0, TYPE_SOCKS4, TYPE_SOCKS5 }

Signals

void changedDisplaySettings ()
void changedEmailDisplaySettings ()
void changedFontSettings ()
void changedFriendlyName ()
void changedMsnObject ()
void changedNoEmails ()
void changedStatus ()
void changedTimerSettings ()
void changedViewMode ()

Public Member Functions

void changeNoEmails (int change)
virtual void copyAccount (const Account *account)
void copyAccountUISettings (const Account *account)
bool getAutoreply () const
const QString & getAutoreplyMessage () const
const QString & getChatFormat () const
const QString & getComposeCommand () const
const QFont & getContactFont () const
const QString & getContactFontColor () const
bool getCustomImage () const
const QString getCustomImagePath () const
const QString & getEmailCommand () const
bool getEmailSupported () const
const QString & getEmailUrl () const
const QString & getExternalIP () const
uint getExternalPort () const
const QFont & getFont () const
const QString & getFontColor () const
QString getFriendlyName () const
QString getHandle () const
const int & getIdleTime () const
const QString getImagePath () const
const QString & getInboxCommand () const
const QString getMsnObjectString () const
int getNoEmails () const
const int & getNotificationDuration () const
QString getPassword () const
const QString & getProxyPassword () const
const int & getProxyPort () const
const QString & getProxyServer () const
const int & getProxyType () const
const QString & getProxyUID () const
const QString & getSaveChatPath () const
bool getSaveChats () const
const int & getSavedChatDirectoryStructure () const
bool getShowAllowedContacts () const
bool getShowContactsByGroup () const
bool getShowEmail () const
bool getShowImage () const
bool getShowOfflineContacts () const
bool getShowOfflineNotification () const
bool getShowOtherFolders () const
bool getShowRemovedContacts () const
bool getShowSidebar () const
bool getStartInvisible () const
QString getStatus () const
bool getUseAutologin () const
bool getUseContactFont () const
bool getUseEmoticons () const
bool getUseFontEffects () const
bool getUseHotmail () const
bool getUseIdleTimer () const
bool getUseNotifier () const
bool getUseProxy () const
void openHotmail (const QString &command, const QString &folder, const QString &url)
void openHotmailAtCompose (QString contactHandle)
void openHotmailAtInbox ()
void readProperties (KConfig *config, QString handle)
void saveProperties (KConfig *config)
void setAccountInformation (QString authorization, QString kv, QString preferredEmail, QString sid, bool emailSupported, QString externalIP, uint externalPort)
void setAlertsInformation (bool useIdleTimer, int idleTime, bool useNotifier, int notificationDuration, bool showOfflineNotification)
void setAutoreply (bool autoreply)
void setAutoreplyMessage (const QString &autoreplyMessage)
void setChatInformation (bool useContactFont, bool useEmoticons, bool useFontEffects, const QString &chatFormat)
void setChatLoggingInformation (bool saveChats, const QString &saveChatPath, const int &directoryStructure)
void setComposeInformation (QString command, QString folder, QString url)
void setCustomImage (bool customImage)
void setEmailInformation (bool useHotmail, const QString &emailCommand, bool showEmail, bool showOtherFolders)
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 setInboxInformation (QString command, QString folder, QString url)
void setInitialEmailInformation (QString emailUrl, int noEmailsInInbox, int noEmailsInOtherFolders)
void setLoginInformation (QString handle, QString friendlyName, QString password="")
void setNoEmails (int noEmails)
void setProxyInformation (bool useproxy, const int &proxytype, const QString &proxyserver, const int &proxyport, const QString &proxyuid, const QString &password)
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 setStartInvisible (bool startInvisible)
void setStatus (QString status)
void setUseAutologin (bool useAutologin)
void setUseEmoticons (bool useEmoticons)
void updateMsnObject ()

Static Public Member Functions

static void destroy ()
static CurrentAccountinstance ()

Protected Member Functions

void setEmailSupported (bool emailSupported)

Private Slots

void removeHotmailFile ()

Private Member Functions

int getSessionLength () const
void startProcess (QString command)

Private Attributes

QString authorization_
bool autoreply_
QString composeCommand_
QString composeFolder_
QString composeUrl_
QString emailUrl_
QString externalIP_
uint externalPort_
QTimer fileRemovalTimer_
QStringList hotmailFileList_
QString inboxCommand_
QString inboxFolder_
QString inboxUrl_
QString kv_
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