kpilot/kpilot

PilotDaemon Class Reference

Inheritance diagram for PilotDaemon:

PilotDaemonDCOP List of all members.

Detailed Description

Definition at line 127 of file pilotDaemon.h.


Public Types

enum  DaemonStatus {
  HOTSYNC_START, HOTSYNC_END, FILE_INSTALL_REQ, ERROR,
  READY, INIT, NOT_LISTENING
}

Public Slots

virtual ASYNC requestSync (int)

Public Member Functions

 PilotDaemon ()
 ~PilotDaemon ()
DaemonStatus status () const
virtual QString statusString ()
virtual QString shortStatusString ()
void showTray ()
virtual void addInstallFiles (const QStringList &)
virtual ASYNC requestSyncType (QString)
virtual ASYNC requestRegularSyncNext ()
virtual int nextSyncType () const
virtual ASYNC requestSyncOptions (bool, bool)
virtual ASYNC quitNow ()
virtual ASYNC reloadSettings ()
virtual ASYNC setTempDevice (QString d)
virtual void stopListening ()
virtual void startListening ()
virtual bool isListening ()
virtual QDateTime lastSyncDate ()
virtual QStringList configuredConduitList ()
virtual QString logFileName ()
virtual QString userName ()
virtual QString pilotDevice ()
virtual bool killDaemonOnExit ()

Protected Types

enum  postSyncActions { None = 0, ReloadSettings = 1, Quit = 2 }

Protected Slots

void startHotSync (KPilotLink *lnk)
void endHotSync ()
void logMessage (const QString &)
void logError (const QString &)
void logProgress (const QString &, int)
void slotFilesChanged ()
void slotRunKPilot ()
void slotRunConfig ()

Protected Member Functions

LoggerDCOP_stubgetLogger ()
LoggerDCOP_stubgetFileLogger ()
KPilotDCOP_stubgetKPilot ()

Protected Attributes

DaemonStatus fDaemonStatus
int fPostSyncAction
LogFilefLogFile
bool fIsListening

Friends

class PilotDaemonTray

Member Function Documentation

QString PilotDaemon::statusString (  )  [virtual]

Functions requesting the status of the daemon.

Implements PilotDaemonDCOP.

Definition at line 533 of file pilotDaemon.cc.

void PilotDaemon::showTray (  ) 

Display the daemon's system tray icon (if there is one, depending on the DockDaemon setting in the config file).

Definition at line 386 of file pilotDaemon.cc.

void PilotDaemon::addInstallFiles ( const QStringList &   )  [virtual]

Some other useful functionality.

Implements PilotDaemonDCOP.

Definition at line 333 of file pilotDaemon.cc.

void PilotDaemon::requestSync ( int   )  [virtual, slot]

Start a HotSync.

What kind of HotSync is determined by the int parameter (use the enum in kpilot.kcfg, or better yet, use requestSyncType and pass the name). Using a value of 0 (zero, which isn't a legal mode for sync actions) uses the configuration file default.

Implements PilotDaemonDCOP.

Definition at line 648 of file pilotDaemon.cc.

void PilotDaemon::requestSyncType ( QString   )  [virtual]

Request a particular kind of sync next; pass in the name of a sync type instead.

Implements PilotDaemonDCOP.

Definition at line 679 of file pilotDaemon.cc.

void PilotDaemon::requestRegularSyncNext (  )  [virtual]

Shortcut for using requestSync(1).

Implements PilotDaemonDCOP.

Definition at line 642 of file pilotDaemon.cc.

int PilotDaemon::nextSyncType (  )  const [virtual]

Query what type is set most recently.

Implements PilotDaemonDCOP.

Definition at line 712 of file pilotDaemon.cc.

void PilotDaemon::requestSyncOptions ( bool  ,
bool   
) [virtual]

Set the mix-ins (see SyncAction::SyncMode for details).

Implements PilotDaemonDCOP.

Definition at line 699 of file pilotDaemon.cc.

void PilotDaemon::quitNow (  )  [virtual]

Functions for the KPilot UI, indicating what the daemon should do.

Implements PilotDaemonDCOP.

Definition at line 618 of file pilotDaemon.cc.

QDateTime PilotDaemon::lastSyncDate (  )  [virtual]

Functions reporting same status data, e.g.

for the kontact plugin.

Implements PilotDaemonDCOP.

Definition at line 720 of file pilotDaemon.cc.

void PilotDaemon::slotFilesChanged (  )  [protected, slot]

Called after a file has been installed to notify any observers, like KPilot, that files have been installed.

[Here that means: copied to the pending_install directory and thus *waiting* for installation on the Palm]

Definition at line 1202 of file pilotDaemon.cc.

void PilotDaemon::slotRunKPilot (  )  [protected, slot]

Start up KPilot.

Definition at line 1207 of file pilotDaemon.cc.

void PilotDaemon::slotRunConfig (  )  [protected, slot]

Run conduit configuration using "kpilot -c".

Definition at line 1236 of file pilotDaemon.cc.

LoggerDCOP_stub& PilotDaemon::getLogger (  )  [inline, protected]

Provide access to KPilot's DCOP interface through a stub.

Definition at line 264 of file pilotDaemon.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys