kpilot

KPilotUser Class Reference

#include <pilotUser.h>

List of all members.


Public Member Functions

PilotUser * data ()
time_t getLastSuccessfulSyncDate ()
time_t getLastSyncDate ()
unsigned long getLastSyncPC () const
 KPilotUser (const PilotUser *user)
 KPilotUser ()
QString name () const
const int passwordLength () const
void setLastSuccessfulSyncDate (time_t when)
void setLastSyncDate (time_t when)
void setLastSyncPC (unsigned long pc)
void setName (const QString &name)

Detailed Description

Definition at line 40 of file pilotUser.h.


Constructor & Destructor Documentation

KPilotUser::KPilotUser (  )  [inline]

Constructor.

Create an empty PilotUser structure.

Definition at line 44 of file pilotUser.h.

KPilotUser::KPilotUser ( const PilotUser *  user  )  [inline]

Constructor.

Use the given PilotUser structure. This creates a copy; no ownership is transferred.

Definition at line 51 of file pilotUser.h.


Member Function Documentation

PilotUser* KPilotUser::data (  )  [inline]

Accessor for the whole PilotUser structure.

Definition at line 57 of file pilotUser.h.

time_t KPilotUser::getLastSuccessfulSyncDate (  )  [inline]

Returns:
the timestamp that the handheld was last synced successfully.

Definition at line 103 of file pilotUser.h.

time_t KPilotUser::getLastSyncDate (  )  [inline]

Returns:
the timestamp of the last sync attempt.

Definition at line 114 of file pilotUser.h.

unsigned long KPilotUser::getLastSyncPC (  )  const [inline]

Returns:
the ID (4 bytes) of the last PC to sync this handheld. This is intended to help identify when the use has changed PCs and needs a new full sync.

Definition at line 87 of file pilotUser.h.

QString KPilotUser::name (  )  const [inline]

Returns:
The username set on the handheld.

Definition at line 63 of file pilotUser.h.

const int KPilotUser::passwordLength (  )  const [inline]

Returns:
The length of the password on the handheld, in bytes.

Definition at line 78 of file pilotUser.h.

void KPilotUser::setLastSuccessfulSyncDate ( time_t  when  )  [inline]

Set the timestamp for a successful sync.

Definition at line 108 of file pilotUser.h.

void KPilotUser::setLastSyncDate ( time_t  when  )  [inline]

Set the timestamp of the sync attempt.

Definition at line 119 of file pilotUser.h.

void KPilotUser::setLastSyncPC ( unsigned long  pc  )  [inline]

Set the ID of the PC syncing the handheld to pc .

This should be unique in some way (perhaps IP addresses can be used this way, or hostnames).

Definition at line 95 of file pilotUser.h.

void KPilotUser::setName ( const QString name  )  [inline]

Set the user name to the given name , truncated if necessary to the size of the field on the handheld.

Definition at line 70 of file pilotUser.h.


The documentation for this class was generated from the following file: