kpilot/lib
KPilotLocalLink Class Reference
#include <kpilotlocallink.h>
Inheritance diagram for KPilotLocalLink:

Detailed Description
Implementation of the device link for file-system backed (ie.local, fake) devices. Uses a directory specified in the reset() call to serve databases.
Definition at line 43 of file kpilotlocallink.h.
Public Slots | |
void | ready () |
Public Member Functions | |
KPilotLocalLink (QObject *parent=0L, const char *name=0L) | |
virtual | ~KPilotLocalLink () |
virtual QString | statusString () const |
virtual bool | isConnected () const |
virtual void | reset (const QString &) |
virtual void | close () |
virtual void | reset () |
virtual bool | tickle () |
virtual const KPilotCard * | getCardInfo (int card) |
virtual void | endSync (EndOfSyncFlags f) |
virtual int | openConduit () |
virtual int | getNextDatabase (int index, struct DBInfo *) |
virtual int | findDatabase (const char *name, struct DBInfo *, int index=0, unsigned long type=0, unsigned long creator=0) |
virtual bool | retrieveDatabase (const QString &path, struct DBInfo *db) |
virtual DBInfoList | getDBList (int cardno=0, int flags=dlpDBListRAM) |
virtual PilotDatabase * | database (const QString &name) |
Protected Member Functions | |
virtual bool | installFile (const QString &, const bool deleteFile) |
virtual void | addSyncLogEntryImpl (const QString &s) |
virtual int | pilotSocket () const |
unsigned int | findAvailableDatabases (Private &, const QString &path) |
Protected Attributes | |
bool | fReady |
QString | fPath |
Private * | d |
Member Function Documentation
|
Actually write an entry to the device link.
The message Implements KPilotLink. Definition at line 263 of file kpilotlocallink.cc. |
|
Release all resources, including the master pilot socket, timers, etc.
Implements KPilotLink. Definition at line 171 of file kpilotlocallink.cc. |
|
Return a database object for manipulating the database with name This database may be local or remote, depending on the kind of link in use.
Implements KPilotLink. Definition at line 353 of file kpilotlocallink.cc. |
|
Pre-process the directory
Definition at line 77 of file kpilotlocallink.cc. |
|
Find a database with the given
Fills in the DBInfo structure
Implements KPilotLink. Definition at line 221 of file kpilotlocallink.cc. |
|
Retrieve information about the data card Non-device links return something fake. This function may return NULL (non-device links or on error).
Implements KPilotLink. Definition at line 181 of file kpilotlocallink.cc. |
|
Returns a list of DBInfo structures describing all the databases available on the link (ie.
device) with the given card number
Implements KPilotLink. Definition at line 340 of file kpilotlocallink.cc. |
|
Fill the DBInfo structure
Implements KPilotLink. Definition at line 199 of file kpilotlocallink.cc. |
|
Install a single file onto the device link.
Full pathname Implements KPilotLink. Definition at line 269 of file kpilotlocallink.cc. |
|
True if HotSync has been started but not finished yet (ie. the physical Pilot is waiting for sync commands) Implements KPilotLink. Definition at line 140 of file kpilotlocallink.cc. |
|
Notify the Pilot user that a conduit is running now. On real devices, this prints out (on screen) which database is now opened; useful for progress reporting.
Reimplemented from KPilotLink. Definition at line 192 of file kpilotlocallink.cc. |
|
Returns a file handle for raw operations. Not recommended. On links with no physical device backing, returns -1.
Reimplemented from KPilotLink. Definition at line 72 of file kpilotlocallink.h. |
|
Assuming things have been set up at least once already by a call to reset() with parameters, use this slot to re-start with the same settings.
Implements KPilotLink. Definition at line 152 of file kpilotlocallink.cc. |
|
Return the device link to the Init state and try connecting to the given device path (if it's non-empty). What the path means depends on the kind of link we're instantiating.
Implements KPilotLink. Definition at line 145 of file kpilotlocallink.cc. |
|
Retrieve the database indicated by DBInfo
This copies all the data, and you can create a PilotLocalDatabase from the resulting
Implements KPilotLink. Definition at line 296 of file kpilotlocallink.cc. |
|
Provides a human-readable status string.
Implements KPilotLink. Definition at line 135 of file kpilotlocallink.cc. |
|
Tickle the underlying device exactly once.
Implements KPilotLink. Definition at line 176 of file kpilotlocallink.cc. |
The documentation for this class was generated from the following files: