kpilot/kpilot

PilotDaemon Class Reference

Inheritance diagram for PilotDaemon:

PilotDaemonDCOP List of all members.

Detailed Description

Definition at line 124 of file pilotDaemon.h.


Public Types

 HOTSYNC_START
 HOTSYNC_END
 FILE_INSTALL_REQ
 ERROR
 READY
 INIT
 NOT_LISTENING
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 requestFastSyncNext ()
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

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

Protected Slots

void startHotSync (KPilotDeviceLink *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

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

Some other useful functionality.

Implements PilotDaemonDCOP.

Definition at line 338 of file pilotDaemon.cc.

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

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

Definition at line 254 of file pilotDaemon.h.

QDateTime PilotDaemon::lastSyncDate (  )  [virtual]

Functions reporting same status data, e.g.

for the kontact plugin.

Implements PilotDaemonDCOP.

Definition at line 731 of file pilotDaemon.cc.

int PilotDaemon::nextSyncType (  )  const [virtual]

Query what type is set most recently.

Implements PilotDaemonDCOP.

Definition at line 723 of file pilotDaemon.cc.

void PilotDaemon::quitNow (  )  [virtual]

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

Implements PilotDaemonDCOP.

Definition at line 623 of file pilotDaemon.cc.

void PilotDaemon::requestFastSyncNext (  )  [virtual]

Shortcut for using requestSync(1).

Implements PilotDaemonDCOP.

Definition at line 652 of file pilotDaemon.cc.

void PilotDaemon::requestRegularSyncNext (  )  [virtual]

Shortcut for using requestSync(2).

Implements PilotDaemonDCOP.

Definition at line 647 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 658 of file pilotDaemon.cc.

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

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

Implements PilotDaemonDCOP.

Definition at line 710 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 689 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 391 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 1160 of file pilotDaemon.cc.

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

Run conduit configuration using "kpilot -c".

Definition at line 1194 of file pilotDaemon.cc.

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

Start up KPilot.

Definition at line 1165 of file pilotDaemon.cc.

QString PilotDaemon::statusString (  )  [virtual]

Functions requesting the status of the daemon.

Implements PilotDaemonDCOP.

Definition at line 538 of file pilotDaemon.cc.


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