kpilot

PilotDaemon Class Reference

#include <pilotDaemon.h>

Inheritance diagram for PilotDaemon:

List of all members.


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

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

Protected Types

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

Protected Slots

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

Protected Member Functions

LoggerDCOP_stub & getFileLogger ()
KPilotDCOP_stub & getKPilot ()
LoggerDCOP_stub & getLogger ()

Protected Attributes

DaemonStatus fDaemonStatus
bool fIsListening
LogFilefLogFile
int fPostSyncAction

Detailed Description

Definition at line 127 of file pilotDaemon.h.


Member Enumeration Documentation

Enumerator:
HOTSYNC_START 
HOTSYNC_END 
FILE_INSTALL_REQ 
ERROR 
READY 
INIT 
NOT_LISTENING 

Definition at line 139 of file pilotDaemon.h.

enum PilotDaemon::postSyncActions [protected]

Enumerator:
None 
ReloadSettings 
Quit 

Definition at line 193 of file pilotDaemon.h.


Constructor & Destructor Documentation

PilotDaemon::PilotDaemon (  ) 

Definition at line 280 of file pilotDaemon.cc.

PilotDaemon::~PilotDaemon (  ) 

Definition at line 320 of file pilotDaemon.cc.


Member Function Documentation

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

Some other useful functionality.

Implements PilotDaemonDCOP.

Definition at line 331 of file pilotDaemon.cc.

QStringList PilotDaemon::configuredConduitList (  )  [virtual]

Implements PilotDaemonDCOP.

Definition at line 760 of file pilotDaemon.cc.

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

Definition at line 1153 of file pilotDaemon.cc.

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

Definition at line 265 of file pilotDaemon.h.

KPilotDCOP_stub& PilotDaemon::getKPilot (  )  [inline, protected]

Definition at line 266 of file pilotDaemon.h.

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

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

Definition at line 264 of file pilotDaemon.h.

virtual bool PilotDaemon::isListening (  )  [inline, virtual]

Implements PilotDaemonDCOP.

Definition at line 179 of file pilotDaemon.h.

bool PilotDaemon::killDaemonOnExit (  )  [virtual]

Implements PilotDaemonDCOP.

Definition at line 797 of file pilotDaemon.cc.

QDateTime PilotDaemon::lastSyncDate (  )  [virtual]

Functions reporting same status data, e.g.

DCOP Functions reporting some status data, e.g.

for the kontact plugin.

Implements PilotDaemonDCOP.

Definition at line 715 of file pilotDaemon.cc.

void PilotDaemon::logError ( const QString s  )  [protected, slot]

Definition at line 1135 of file pilotDaemon.cc.

QString PilotDaemon::logFileName (  )  [virtual]

Implements PilotDaemonDCOP.

Definition at line 783 of file pilotDaemon.cc.

void PilotDaemon::logMessage ( const QString s  )  [protected, slot]

Definition at line 1126 of file pilotDaemon.cc.

void PilotDaemon::logProgress ( const QString s,
int  i 
) [protected, slot]

Definition at line 1144 of file pilotDaemon.cc.

int PilotDaemon::nextSyncType (  )  const [virtual]

Query what type is set most recently.

Implements PilotDaemonDCOP.

Definition at line 707 of file pilotDaemon.cc.

QString PilotDaemon::pilotDevice (  )  [virtual]

Implements PilotDaemonDCOP.

Definition at line 792 of file pilotDaemon.cc.

void PilotDaemon::quitNow (  )  [virtual]

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

Implements PilotDaemonDCOP.

Definition at line 613 of file pilotDaemon.cc.

void PilotDaemon::reloadSettings (  )  [virtual]

Implements PilotDaemonDCOP.

Definition at line 419 of file pilotDaemon.cc.

void PilotDaemon::requestRegularSyncNext (  )  [virtual]

Shortcut for using requestSync(1).

Implements PilotDaemonDCOP.

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

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

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

Implements PilotDaemonDCOP.

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

void PilotDaemon::setTempDevice ( QString  d  )  [virtual]

Implements PilotDaemonDCOP.

Definition at line 409 of file pilotDaemon.cc.

QString PilotDaemon::shortStatusString (  )  [virtual]

Implements PilotDaemonDCOP.

Definition at line 551 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 384 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 1198 of file pilotDaemon.cc.

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

Run conduit configuration using "kpilot -c".

Definition at line 1231 of file pilotDaemon.cc.

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

Start up KPilot.

Definition at line 1203 of file pilotDaemon.cc.

void PilotDaemon::startHotSync ( KPilotLink lnk  )  [protected, slot]

Definition at line 990 of file pilotDaemon.cc.

void PilotDaemon::startListening (  )  [virtual]

Implements PilotDaemonDCOP.

Definition at line 523 of file pilotDaemon.cc.

DaemonStatus PilotDaemon::status (  )  const [inline]

Definition at line 150 of file pilotDaemon.h.

QString PilotDaemon::statusString (  )  [virtual]

Functions requesting the status of the daemon.

Implements PilotDaemonDCOP.

Definition at line 531 of file pilotDaemon.cc.

void PilotDaemon::stopListening (  )  [virtual]

Implements PilotDaemonDCOP.

Definition at line 515 of file pilotDaemon.cc.

QString PilotDaemon::userName (  )  [virtual]

Implements PilotDaemonDCOP.

Definition at line 788 of file pilotDaemon.cc.


Member Data Documentation

Definition at line 191 of file pilotDaemon.h.

bool PilotDaemon::fIsListening [protected]

Definition at line 269 of file pilotDaemon.h.

Definition at line 266 of file pilotDaemon.h.

Definition at line 198 of file pilotDaemon.h.


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