kpilot
KPilotUser Class Reference
#include <pilotUser.h>
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] |
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] |
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] |
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] |
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] |
void KPilotUser::setLastSyncDate | ( | time_t | when | ) | [inline] |
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: