kpilot
main-test.cc File Reference
#include "options.h"#include <stdlib.h>#include <time.h>#include <iostream>#include <qpushbutton.h>#include <qhbox.h>#include <qtimer.h>#include <kapplication.h>#include <klocale.h>#include <kaboutdata.h>#include <kcmdlineargs.h>#include <kservice.h>#include <kservicetype.h>#include <kuserprofile.h>#include <pi-version.h>#include "actionQueue.h"#include "actions.h"#include "kpilotdevicelink.h"#include "kpilotlocallink.h"#include "pilot.h"#include "kpilotConfig.h"#include "hotSync.h"

Go to the source code of this file.
Functions | |
| int | backup (const QString &device, const QString &what, KCmdLineArgs *p) |
| int | check (const QString &device, const QString &what, KCmdLineArgs *p) |
| void | connectStack (KPilotLink *l, ActionQueue *a, bool loop=false) |
| KPilotLink * | createLink (bool local) |
| int | exec (const QString &device, const QString &what, KCmdLineArgs *p) |
| void | listConduits () |
| int | listDB (const QString &device, KCmdLineArgs *p) |
| int | main (int argc, char **argv) |
| int | restore (const QString &device, const QString &what, KCmdLineArgs *p) |
| int | show (const QString &what) |
Variables | |
| static KCmdLineOptions | conduitOptions [] |
| static KCmdLineOptions | generalOptions [] |
Function Documentation
Definition at line 184 of file main-test.cc.
Definition at line 227 of file main-test.cc.
| void connectStack | ( | KPilotLink * | l, | |
| ActionQueue * | a, | |||
| bool | loop = false | |||
| ) |
If loop is true, then instead of quitting at end of sync, wait for a new sync just like the real daemon does.
Definition at line 134 of file main-test.cc.
| KPilotLink* createLink | ( | bool | local | ) |
Conduits - sync actions - for testing specific scenarios.
Definition at line 118 of file main-test.cc.
Definition at line 159 of file main-test.cc.
| void listConduits | ( | ) |
Definition at line 257 of file main-test.cc.
| int listDB | ( | const QString & | device, | |
| KCmdLineArgs * | p | |||
| ) |
Definition at line 214 of file main-test.cc.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 340 of file main-test.cc.
Definition at line 199 of file main-test.cc.
| int show | ( | const QString & | what | ) |
Definition at line 286 of file main-test.cc.
Variable Documentation
KCmdLineOptions conduitOptions[] [static] |
Initial value:
{
{ "T",0,0},
{ "notest",
I18N_NOOP("*Really* run the conduit, not in test mode."),
0 } ,
{ "F",0,0},
{ "local",
I18N_NOOP("Run the conduit in file-test mode."),
0 } ,
{ "HHtoPC",
I18N_NOOP("Copy Pilot to Desktop."),
0 } ,
{ "PCtoHH",
I18N_NOOP("Copy Desktop to Pilot."),
0 } ,
{ "loop",
I18N_NOOP("Repeated perform action - only useful for --list"),
0 } ,
KCmdLineLastOption
}
Definition at line 91 of file main-test.cc.
KCmdLineOptions generalOptions[] [static] |
Initial value:
{
{"p",0,0},
{"port <device>",
I18N_NOOP("Path to Pilot device node"),
"/dev/pilot"},
{"l",0,0},
{"list", I18N_NOOP("List DBs"), 0},
{"b",0,0},
{"backup <dest dir>", I18N_NOOP("Backup Pilot to <dest dir>"), 0},
{"r",0,0},
{"restore <src dir>", I18N_NOOP("Restore Pilot from backup"), 0},
{"e",0,0},
{ "exec <filename>",
I18N_NOOP("Run conduit from desktop file <filename>"),
0 },
{"c",0,0},
{ "check <what>",
I18N_NOOP("Run a specific check (with the device)"), "help"},
{"s",0,0},
{ "show <what>",
I18N_NOOP("Show KPilot configuration information"), "help"},
KCmdLineLastOption
}
Definition at line 63 of file main-test.cc.
