diff options
Diffstat (limited to 'lib/pilot.h')
-rw-r--r-- | lib/pilot.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/pilot.h b/lib/pilot.h index 8cdb6b1..9aa44dc 100644 --- a/lib/pilot.h +++ b/lib/pilot.h @@ -60,7 +60,7 @@ class PilotCategoryInfo; // ... and category information * as mapping user-visible strings from UTF8 (KDE side) to * the encoding used on the handheld. */ -namespace Pilot TDE_EXPORT +namespace Pilot { /** Maximum size of an AppInfo block, taken roughly from the pilot-link source. */ static const int MAX_APPINFO_SIZE=8192; @@ -84,7 +84,7 @@ namespace Pilot TDE_EXPORT * a Unicode string. Converts the @p len characters in @p c * to a Unicode string. */ - TQString fromPilot( const char *c, int len ); + TDE_EXPORT TQString fromPilot( const char *c, int len ); /** Static translation function mapping a NUL-terminated * string from the handheld's encoding to UTF-8. @@ -92,15 +92,15 @@ namespace Pilot TDE_EXPORT * @return TQString (UTF-8) value of @p c * @note NUL-terminated strings are rare on the handheld. */ - TQString fromPilot( const char *c ); + TDE_EXPORT TQString fromPilot( const char *c ); /** Static translation function that maps a TQString onto the * native 8 bit encoding of the handheld. Writes the result into * the buffer @p buf which has size @p len. Returns the length * of the result. Zero-fills the buffer as needed. */ - int toPilot( const TQString &s, char *buf, int len); - int toPilot( const TQString &s, unsigned char *buf, int len); + TDE_EXPORT int toPilot( const TQString &s, char *buf, int len); + TDE_EXPORT int toPilot( const TQString &s, unsigned char *buf, int len); /** Static translation function that maps a TQString onto the * native 8 bit encoding of the handheld. @@ -108,7 +108,7 @@ namespace Pilot TDE_EXPORT * @param s String to encode * @return Encoded string in a TQCString */ - TQCString toPilot( const TQString &s ); + TDE_EXPORT TQCString toPilot( const TQString &s ); /** Create a codec for translating handheld native 8 bit to Unicode, * using the given codec @p name -- this will often be latin1, but @@ -117,15 +117,15 @@ namespace Pilot TDE_EXPORT * * @return @c true on success, @c false otherwise */ - bool setupPilotCodec(const TQString &name); + TDE_EXPORT bool setupPilotCodec(const TQString &name); /** Returns the name of the codec being used. */ - TQString codecName(); + TDE_EXPORT TQString codecName(); /** For debugging, display category names for the given AppInfo * structure. Called by dump(). You must pass a valid reference. */ - void dumpCategories(const struct CategoryAppInfo *info); + TDE_EXPORT void dumpCategories(const struct CategoryAppInfo *info); /** Check that a given category number is valid. This * restricts the range of integers to [0..CATEGORY_COUNT-1] @@ -198,7 +198,7 @@ namespace Pilot TDE_EXPORT * @p unknownIsUnfiled is true. * */ - int findCategory(const struct CategoryAppInfo *info, const TQString &name, bool unknownIsUnfiled); + TDE_EXPORT int findCategory(const struct CategoryAppInfo *info, const TQString &name, bool unknownIsUnfiled); /** Search for the given category @p name in the list * of categories; returns the category number. If @p unknownIsUnfiled @@ -218,7 +218,7 @@ namespace Pilot TDE_EXPORT * are all full. * */ - int insertCategory(struct CategoryAppInfo *info, const TQString &label, bool unknownIsUnfiled); + TDE_EXPORT int insertCategory(struct CategoryAppInfo *info, const TQString &label, bool unknownIsUnfiled); /** The handheld also holds data about each database * in a DBInfo structure; check if the database described |