Fix FTBFS described in issue #25

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/26/head
Michele Calgaro 6 months ago
parent caea47379c
commit 4d735aa1f6
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -60,7 +60,7 @@ class PilotCategoryInfo; // ... and category information
* as mapping user-visible strings from UTF8 (KDE side) to * as mapping user-visible strings from UTF8 (KDE side) to
* the encoding used on the handheld. * 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. */ /** Maximum size of an AppInfo block, taken roughly from the pilot-link source. */
static const int MAX_APPINFO_SIZE=8192; 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 * a Unicode string. Converts the @p len characters in @p c
* to a Unicode string. * 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 /** Static translation function mapping a NUL-terminated
* string from the handheld's encoding to UTF-8. * 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 * @return TQString (UTF-8) value of @p c
* @note NUL-terminated strings are rare on the handheld. * @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 /** Static translation function that maps a TQString onto the
* native 8 bit encoding of the handheld. Writes the result into * native 8 bit encoding of the handheld. Writes the result into
* the buffer @p buf which has size @p len. Returns the length * the buffer @p buf which has size @p len. Returns the length
* of the result. Zero-fills the buffer as needed. * of the result. Zero-fills the buffer as needed.
*/ */
int toPilot( const TQString &s, char *buf, int len); TDE_EXPORT 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, unsigned char *buf, int len);
/** Static translation function that maps a TQString onto the /** Static translation function that maps a TQString onto the
* native 8 bit encoding of the handheld. * native 8 bit encoding of the handheld.
@ -108,7 +108,7 @@ namespace Pilot TDE_EXPORT
* @param s String to encode * @param s String to encode
* @return Encoded string in a TQCString * @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, /** Create a codec for translating handheld native 8 bit to Unicode,
* using the given codec @p name -- this will often be latin1, but * 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 * @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. */ /** Returns the name of the codec being used. */
TQString codecName(); TDE_EXPORT TQString codecName();
/** For debugging, display category names for the given AppInfo /** For debugging, display category names for the given AppInfo
* structure. Called by dump(). You must pass a valid reference. * 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 /** Check that a given category number is valid. This
* restricts the range of integers to [0..CATEGORY_COUNT-1] * restricts the range of integers to [0..CATEGORY_COUNT-1]
@ -198,7 +198,7 @@ namespace Pilot TDE_EXPORT
* @p unknownIsUnfiled is true. * @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 /** Search for the given category @p name in the list
* of categories; returns the category number. If @p unknownIsUnfiled * of categories; returns the category number. If @p unknownIsUnfiled
@ -218,7 +218,7 @@ namespace Pilot TDE_EXPORT
* are all full. * 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 /** The handheld also holds data about each database
* in a DBInfo structure; check if the database described * in a DBInfo structure; check if the database described

@ -77,7 +77,7 @@ PilotDateEntry::PilotDateEntry(PilotRecord * rec) :
{ {
// Construct a fake pi_buffer for unpack_Appointment. // Construct a fake pi_buffer for unpack_Appointment.
// No ownership changes occur here. // No ownership changes occur here.
pi_buffer_t b = { (unsigned char *) rec->data(), rec->size(), rec->size() } ; pi_buffer_t b = { (unsigned char*)rec->data(), (size_t)rec->size(), (size_t)rec->size() } ;
unpack_Appointment(&fAppointmentInfo, &b, datebook_v1); unpack_Appointment(&fAppointmentInfo, &b, datebook_v1);
} }
return; return;

@ -388,7 +388,7 @@ protected:
} ; } ;
/** A namespace containing only static helper methods. */ /** A namespace containing only static helper methods. */
namespace PluginUtility TDE_EXPORT namespace PluginUtility
{ {
/** Searches the argument list for --foo=bar and returns bar, TQString() if not found. /** Searches the argument list for --foo=bar and returns bar, TQString() if not found.
* Don't include the -- in the argname. */ * Don't include the -- in the argname. */
@ -402,14 +402,14 @@ namespace PluginUtility TDE_EXPORT
* The current approach is to ask the DCOP server if the application * The current approach is to ask the DCOP server if the application
* has registered. * has registered.
*/ */
bool isRunning(const TQCString &appName); TDE_EXPORT bool isRunning(const TQCString &appName);
/** /**
* Check a given library for its version, returning 0 if no * Check a given library for its version, returning 0 if no
* version symbol is found. * version symbol is found.
*/ */
unsigned long pluginVersion(const KLibrary *); TDE_EXPORT unsigned long pluginVersion(const KLibrary *);
TQString pluginVersionString(const KLibrary *); TDE_EXPORT TQString pluginVersionString(const KLibrary *);
} }
/** /**

@ -32,12 +32,9 @@
#include <kdebug.h> #include <kdebug.h>
#include <klibloader.h> #include <klibloader.h>
#include "options.h" #include <kpilotlink.h>
/** @file Defines a template class for factories for KPilot's conduits. */
class KPilotLink;
#include "options.h"
/** Template class that defines a conduit's factory. */ /** Template class that defines a conduit's factory. */

Loading…
Cancel
Save