kpilot
pilotDaemon.cc File Reference
#include "options.h"
#include <stdlib.h>
#include <qtimer.h>
#include <qtooltip.h>
#include <qpixmap.h>
#include <kuniqueapplication.h>
#include <kaboutapplication.h>
#include <kcmdlineargs.h>
#include <kwin.h>
#include <kurl.h>
#include <kpopupmenu.h>
#include <kiconloader.h>
#include <kdebug.h>
#include <kprocess.h>
#include <dcopclient.h>
#include <kurldrag.h>
#include <kservice.h>
#include <kapplication.h>
#include <khelpmenu.h>
#include "pilotRecord.h"
#include "fileInstaller.h"
#include "pilotUser.h"
#include "pilotDatabase.h"
#include "kpilotlink.h"
#include "kpilotdevicelink.h"
#include "actionQueue.h"
#include "actions.h"
#include "hotSync.h"
#include "internalEditorAction.h"
#include "logFile.h"
#include "kpilotConfig.h"
#include "kpilotDCOP_stub.h"
#include "kpilotDCOP.h"
#include "loggerDCOP_stub.h"
#include "pilotDaemon.moc"
Go to the source code of this file.
Defines | |
#define | MI(a) |
Enumerations | |
enum | KDesktopLockStatus { NotLocked = 0, Locked = 1, DCOPError = 2 } |
Functions | |
static void | fillConduitNameMap () |
static void | informOthers (KPilotDCOP_stub &kpilot, LoggerDCOP_stub &log, LoggerDCOP_stub &filelog) |
static KDesktopLockStatus | isKDesktopLockRunning () |
static bool | isSyncPossible (ActionQueue *fSyncStack, KPilotLink *pilotLink, KPilotDCOP_stub &kpilot) |
int | main (int argc, char **argv) |
static void | queueConduits (ActionQueue *fSyncStack, const QStringList &conduits, SyncAction::SyncMode e) |
static void | queueEditors (ActionQueue *fSyncStack, KPilotLink *pilotLink) |
static void | queueInstaller (ActionQueue *fSyncStack, KPilotLink *pilotLink, FileInstaller *fInstaller, const QStringList &c) |
Variables | |
static KAboutData * | aboutData = 0L |
static QDict< QString > * | conduitNameMap = 0L |
static KCmdLineOptions | daemonoptions [] |
Define Documentation
#define MI | ( | a | ) |
Value:
fSyncTypeMenu->insertItem( \ SyncAction::SyncMode::name(SyncAction::SyncMode::a) + once, \ (int)(SyncAction::SyncMode::a));
Enumeration Type Documentation
enum KDesktopLockStatus |
Function Documentation
static void fillConduitNameMap | ( | ) | [static] |
Definition at line 723 of file pilotDaemon.cc.
static void informOthers | ( | KPilotDCOP_stub & | kpilot, | |
LoggerDCOP_stub & | log, | |||
LoggerDCOP_stub & | filelog | |||
) | [static] |
Definition at line 846 of file pilotDaemon.cc.
static KDesktopLockStatus isKDesktopLockRunning | ( | ) | [static] |
Definition at line 803 of file pilotDaemon.cc.
static bool isSyncPossible | ( | ActionQueue * | fSyncStack, | |
KPilotLink * | pilotLink, | |||
KPilotDCOP_stub & | kpilot | |||
) | [static] |
If KPilot is busy with something - like configuring conduit - then we shouldn't run a real sync, but just tell the user that the sync couldn't run because of that.
If the call fails, then KPilot is probably not running and we can behave normally.
Definition at line 855 of file pilotDaemon.cc.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 1304 of file pilotDaemon.cc.
static void queueConduits | ( | ActionQueue * | fSyncStack, | |
const QStringList & | conduits, | |||
SyncAction::SyncMode | e | |||
) | [static] |
Definition at line 937 of file pilotDaemon.cc.
static void queueEditors | ( | ActionQueue * | fSyncStack, | |
KPilotLink * | pilotLink | |||
) | [static] |
Definition at line 929 of file pilotDaemon.cc.
static void queueInstaller | ( | ActionQueue * | fSyncStack, | |
KPilotLink * | pilotLink, | |||
FileInstaller * | fInstaller, | |||
const QStringList & | c | |||
) | [static] |
Definition at line 918 of file pilotDaemon.cc.
Variable Documentation
KAboutData* aboutData = 0L [static] |
Definition at line 78 of file pilotDaemon.cc.
QDict<QString>* conduitNameMap = 0L [static] |
Definition at line 721 of file pilotDaemon.cc.
KCmdLineOptions daemonoptions[] [static] |
Initial value:
{ { "device <device>", I18N_NOOP("Device to try first"), ""}, {"fail-silently", I18N_NOOP("Exit instead of complaining about bad configuration files"), 0}, KCmdLineLastOption }
Definition at line 1294 of file pilotDaemon.cc.