kpilot
kabcRecord.cc File Reference
#include "options.h"
#include <qregexp.h>
#include <kglobal.h>
#include <kabc/addressee.h>
#include "kabcRecord.h"
Go to the source code of this file.
Variables | |
static KABC::PhoneNumber::Types | pilotToPhoneMap [8] |
Variable Documentation
KABC::PhoneNumber::Types pilotToPhoneMap[8] [static] |
Initial value:
{ KABC::PhoneNumber::Work, KABC::PhoneNumber::Home, KABC::PhoneNumber::Fax, (KABC::PhoneNumber::Types)0, (KABC::PhoneNumber::Types)0, KABC::PhoneNumber::Home, KABC::PhoneNumber::Pager, KABC::PhoneNumber::Cell }
Email addresses are NOT included in this map, and are handled separately (not in PhoneNumber at all). The Pilot has 8 different kinds of phone numbers (which may be *labeled* however you like). These need to be mapped to the things that KABC::PhoneNumber handles.
From KABC::PhoneNumber enum Types { Home = 1, Work = 2, Msg = 4, Pref = 8, Voice = 16, Fax = 32, Cell = 64, Video = 128, Bbs = 256, Modem = 512, Car = 1024, Isdn = 2048, Pcs = 4096, Pager = 8192 };
From PilotAddress: enum EPhoneType { eWork=0, eHome, eFax, eOther, eEmail, eMain, ePager, eMobile };
This array must have as many elements as PilotAddress::PhoneType and its elements must be KABC::PhoneNumber::Types.
Definition at line 66 of file kabcRecord.cc.