kpilot/lib
PilotAppCategory Class Reference
#include <pilotAppCategory.h>
Inheritance diagram for PilotAppCategory:

Detailed Description
Base class for interpretations of the binary blobs.Also exposes the common characteristics of all entries (in general, these characteristics are copied from the binary blob that this interpretation represents).
Since this is the base of interpretation of the binary blobs, we include codec() here, which is used to translate from and to the handheld native (8 bit) encoding.
Definition at line 60 of file pilotAppCategory.h.
Public Member Functions | |
PilotAppCategory (int a=0, recordid_t i=0, int c=0) | |
PilotAppCategory (const PilotRecord *rec) | |
PilotAppCategory (const PilotAppCategory ©From) | |
PilotAppCategory & | operator= (const PilotAppCategory &r) |
bool | operator== (const PilotAppCategory &compareTo) |
virtual | ~PilotAppCategory (void) |
virtual PilotRecord * | pack () |
virtual QString | getTextRepresentation (bool rt=false) |
void | setCategory (int c) |
bool | setCategory (struct CategoryAppInfo &info, const QString &label) |
bool KDE_DEPRECATED | setCat (struct CategoryAppInfo &info, const QString &label) |
Static Public Member Functions | |
static QString | fromPilot (const char *c, int len) |
static int | toPilot (const QString &s, char *buf, int len) |
static QTextCodec * | codec () |
static QTextCodec * | setupPilotCodec (const QString &name) |
static QString | codecName () |
Protected Member Functions | |
virtual void * | pack_ (void *buf, int *size)=0 |
virtual void | unpack (const void *buf, int size)=0 |
Static Protected Attributes | |
static QTextCodec * | pilotCodec = 0L |
Constructor & Destructor Documentation
|
Constructor with no data. Use the indicated values of the characteristics. Note that the order of the parameters is subtly different from that in PilotRecordBase . Definition at line 89 of file pilotAppCategory.h. |
|
Constructor.
Use the common characteristics values from the given record Definition at line 96 of file pilotAppCategory.h. |
|
Copy constructor.
Definition at line 104 of file pilotAppCategory.h. |
|
Destructor. VIrtual, since we will be subclassed. Definition at line 130 of file pilotAppCategory.h. |
Member Function Documentation
|
Get the codec for use in translating strings from handheld native encoding to QString and vice-versa.
Definition at line 184 of file pilotAppCategory.h. |
|
Returns the name of the codec being used.
Definition at line 159 of file pilotRecord.cc. |
|
Static translaion function that maps handheld native (8 bit, usually latin1 but sometimes someting else) encoded data to a Unicode string.
Converts the Definition at line 194 of file pilotRecord.cc. |
|
Returns a text representation of this (interpreted) data.
The text may use Qt rich text tags if
Reimplemented in PilotDateEntry, and PilotTodoEntry. Definition at line 144 of file pilotAppCategory.h. |
|
Assignment operator. I rather doubt that this is useful. Definition at line 111 of file pilotAppCategory.h. |
|
Comparison operator. Not really useful, since it also wants the same record ID. Definition at line 122 of file pilotAppCategory.h. |
|
Definition at line 184 of file pilotRecord.cc. |
|
Pack whatever data the interpreted record holds into the given buffer, of length
Set Subclasses must reimplement this to give a specific meaning to the binary blob.
Implemented in PilotDateEntry, and PilotTodoEntry. |
|
Sets the category number by looking up the string Sets the category to 0 (unfiled) if no match is found.
Definition at line 164 of file pilotRecord.cc. |
|
Sets the category number to Using an invalid category number results in category 0. Reimplemented from PilotRecordBase. Definition at line 151 of file pilotAppCategory.h. |
|
Create a codec for translating handheld native 8 bit to Unicode, using the given codec
If Definition at line 139 of file pilotRecord.cc. |
|
Static translation function that maps a QString onto the native 8 bit encoding of the handheld.
Writes the result into the buffer Definition at line 199 of file pilotRecord.cc. |
|
Unpack the binary blob
Implemented in PilotDateEntry, and PilotTodoEntry. |
The documentation for this class was generated from the following files: