kpilot
abbrowser-conduit.cc File Reference
#include "options.h"
#include <qtimer.h>
#include <qtextcodec.h>
#include <qfile.h>
#include <qregexp.h>
#include <kabc/stdaddressbook.h>
#include <kabc/resourcefile.h>
#include <kio/netaccess.h>
#include <ksavefile.h>
#include <pilotSerialDatabase.h>
#include <pilotLocalDatabase.h>
#include "resolutionDialog.h"
#include "resolutionTable.h"
#include "abbrowserSettings.h"
#include "kabcRecord.h"
#include "abbrowser-conduit.moc"
Include dependency graph for abbrowser-conduit.cc:
Go to the source code of this file.
Defines | |
#define | appendAddr(desc, abfield, palmfield) appendGen(desc, abfield, getField(palmfield)) |
#define | appendGen(desc, abfield, palmfield) |
#define | appendGenPhone(desc, abfield, palmfield) appendGen(desc, abfield, getPhoneField(PilotAddressInfo::palmfield)) |
#define | appendPhone(desc, abfield, palmfield) appendGenPhone(desc, pcAddr.phoneNumber(PhoneNumber::abfield).number(), palmfield) |
#define | CHECK_ENUM(a) (void)sizeof(EnumerationMismatch<((int)KABCSync::a)==((int)AbbrowserSettings::a)>) |
#define | SETADDRESSFIELD(abfield, palmfield) SETGENFIELD(abAddress.abfield(item->fResolved), palmfield) |
#define | SETCUSTOMFIELD(abfield, palmfield) SETGENFIELD(KABCSync::setFieldFromHHCustom(abfield, pcAddr, item->fResolved, fSyncSettings), palmfield) |
#define | SETFIELD(abfield, palmfield) SETGENFIELD(pcAddr.set##abfield(item->fResolved), palmfield) |
#define | SETGENFIELD(abfield, palmfield) |
#define | SETGENPHONE(abfield, palmfield) |
#define | SETPHONEFIELD(abfield, palmfield) SETGENPHONE(setPhoneNumber(pcAddr, PhoneNumber::abfield, item->fResolved), palmfield) |
Functions | |
static void | compile_time_check () |
int | faxTypeOnPC () |
bool | isArchived (const PilotAddress *addr) |
bool | isDeleted (const PilotAddress *addr) |
static void | setPhoneNumber (Addressee &abEntry, int type, const QString &nr) |
Variables | |
unsigned long | version_conduit_address = Pilot::PLUGIN_API |
Define Documentation
#define appendAddr | ( | desc, | |||
abfield, | |||||
palmfield | ) | appendGen(desc, abfield, getField(palmfield)) |
#define appendGen | ( | desc, | |||
abfield, | |||||
palmfield | ) |
Value:
tab->append(new ResolutionItem(desc, tab->fExistItems, \ (!pcAddr.isEmpty())?(abfield):(QString::null), \ (palmAddr)?(palmAddr->palmfield):(QString::null), \ (backupAddr)?(backupAddr->palmfield):(QString::null) ))
#define appendGenPhone | ( | desc, | |||
abfield, | |||||
palmfield | ) | appendGen(desc, abfield, getPhoneField(PilotAddressInfo::palmfield)) |
#define appendPhone | ( | desc, | |||
abfield, | |||||
palmfield | ) | appendGenPhone(desc, pcAddr.phoneNumber(PhoneNumber::abfield).number(), palmfield) |
#define CHECK_ENUM | ( | a | ) | (void)sizeof(EnumerationMismatch<((int)KABCSync::a)==((int)AbbrowserSettings::a)>) |
Definition at line 75 of file abbrowser-conduit.cc.
#define SETADDRESSFIELD | ( | abfield, | |||
palmfield | ) | SETGENFIELD(abAddress.abfield(item->fResolved), palmfield) |
#define SETCUSTOMFIELD | ( | abfield, | |||
palmfield | ) | SETGENFIELD(KABCSync::setFieldFromHHCustom(abfield, pcAddr, item->fResolved, fSyncSettings), palmfield) |
#define SETFIELD | ( | abfield, | |||
palmfield | ) | SETGENFIELD(pcAddr.set##abfield(item->fResolved), palmfield) |
#define SETGENFIELD | ( | abfield, | |||
palmfield | ) |
Value:
if (item) {\
abfield; \
palmAddr->setField(palmfield, item->fResolved); \
}\
item=tab->next();
#define SETGENPHONE | ( | abfield, | |||
palmfield | ) |
Value:
if (item) { \ abfield; \ palmAddr->setPhoneField(PilotAddressInfo::palmfield, item->fResolved, PilotAddress::Replace); \ }\ item=tab->next();
#define SETPHONEFIELD | ( | abfield, | |||
palmfield | ) | SETGENPHONE(setPhoneNumber(pcAddr, PhoneNumber::abfield, item->fResolved), palmfield) |
Function Documentation
static void compile_time_check | ( | ) | [inline, static] |
Definition at line 77 of file abbrowser-conduit.cc.
int faxTypeOnPC | ( | ) | [inline] |
Definition at line 97 of file abbrowser-conduit.cc.
bool isArchived | ( | const PilotAddress * | addr | ) |
Definition at line 258 of file abbrowser-conduit.cc.
bool isDeleted | ( | const PilotAddress * | addr | ) |
Definition at line 241 of file abbrowser-conduit.cc.
static void setPhoneNumber | ( | Addressee & | abEntry, | |
int | type, | |||
const QString & | nr | |||
) | [inline, static] |
This function just sets the phone number of type "type" to "phone".
Definition at line 1604 of file abbrowser-conduit.cc.
Variable Documentation
unsigned long version_conduit_address = Pilot::PLUGIN_API |
Definition at line 62 of file abbrowser-conduit.cc.