kpilot/lib
Pilot Namespace Reference
Detailed Description
The Pilot namespace holds constants that are global for the handheld data structures.Also contains some global functions that deal with pilot-link structures as well as mapping user-visible strings from UTF8 (KDE side) to the encoding used on the handheld.
Classes | |
struct | dlp |
struct | dlp< char > |
struct | dlp< short > |
struct | dlp< long > |
struct | dlp< char * > |
Typedefs | |
typedef QValueList< recordid_t > | RecordIDList |
Functions | |
QString | fromPilot (const char *c, int len) |
QString | fromPilot (const char *c) |
QCString | toPilot (const QString &s) |
int | toPilot (const QString &s, char *buf, int len) |
int | toPilot (const QString &s, unsigned char *buf, int len) |
bool | setupPilotCodec (const QString &name) |
QString | codecName () |
QString | category (const struct CategoryAppInfo *info, unsigned int i) |
int | findCategory (const struct CategoryAppInfo *info, const QString &name, bool unknownIsUnfiled) |
int | insertCategory (struct CategoryAppInfo *info, const QString &label, bool unknownIsUnfiled) |
void | dumpCategories (const struct CategoryAppInfo *info) |
bool | validCategory (int c) |
QString | categoryName (const struct CategoryAppInfo *info, unsigned int i) |
QStringList | categoryNames (const struct CategoryAppInfo *info) |
static bool | isResource (struct DBInfo *info) |
Variables | |
static QTextCodec * | codec = 0L |
static QMutex * | mutex = 0L |
static const int | MAX_APPINFO_SIZE = 8192 |
static const unsigned int | CATEGORY_COUNT = 16 |
static const unsigned int | CATEGORY_SIZE = 16 |
static const int | Unfiled = 0 |
static const int | MAX_RECORD_SIZE = 65535 |
static const unsigned int | PLUGIN_API = 20061118 |
Function Documentation
|
Returns the QString for the requested category
Returns |
|
Returns a list of all the category names available on the handheld. This list is neither ordered nor does it contain all sixteen categories -- empty category names on the handheld are skipped. |
|
Returns the name of the codec being used.
|
|
For debugging, display category names for the given AppInfo structure. Called by dump(). You must pass a valid reference. |
|
Search for the given category
If
|
|
Static translation function mapping a NUL-terminated string from the handheld's encoding to UTF-8.
|
|
Static translation function that maps handheld native (8 bit, usually latin1 but sometimes someting else) encoded data to a Unicode string.
Converts the |
|
Search for the given category
If
|
|
The handheld also holds data about each database in a DBInfo structure; check if the database described by this structure is a resource database.
|
|
Create a codec for translating handheld native 8 bit to Unicode, using the given codec
If
|
|
Static translation function that maps a QString onto the native 8 bit encoding of the handheld.
Writes the result into the buffer |
|
Static translation function that maps a QString onto the native 8 bit encoding of the handheld.
|
|
Check that a given category number is valid. This restricts the range of integers to [0..CATEGORY_COUNT-1] (i.e. [0..15]) which is what the handheld supports. |
Variable Documentation
|
Maximum number of categories the handheld has.
|
|
Maximum size of a category label.
|
|
Maximum size of an AppInfo block, taken roughly from the pilot-link source.
|
|
Maximum size (in bytes) of a record's data.
|
|
As the API for conduits may change in the course of time, identify them and refuse to load incompatible API versions. Bump this number every release to the current YYYYMMDD value. |
|
Category number for unfiled records.
|