00001
00002
00003
00004 #include "kpilotConfigWizard_address.h"
00005
00006 #include <klocale.h>
00007
00008 KPilotWizard_addressConfig::KPilotWizard_addressConfig( )
00009 : KConfigSkeleton( QString::fromLatin1( "kpilot_addressconduitrc" ) )
00010 {
00011 setCurrentGroup( QString::fromLatin1( "General" ) );
00012
00013 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesAddressbookType;
00014 {
00015 KConfigSkeleton::ItemEnum::Choice choice;
00016 choice.name = QString::fromLatin1( "eAbookResource" );
00017 valuesAddressbookType.append( choice );
00018 }
00019 {
00020 KConfigSkeleton::ItemEnum::Choice choice;
00021 choice.name = QString::fromLatin1( "eAbookFile" );
00022 valuesAddressbookType.append( choice );
00023 }
00024 mAddressbookTypeItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Addressbook type" ), mAddressbookType, valuesAddressbookType, eAbookFile );
00025 mAddressbookTypeItem->setLabel( i18n("Addressbook type") );
00026 addItem( mAddressbookTypeItem, QString::fromLatin1( "AddressbookType" ) );
00027 mFileNameItem = new KConfigSkeleton::ItemPath( currentGroup(), QString::fromLatin1( "FileName" ), mFileName, QString::fromLatin1( "$HOME/.kde/share/apps/kabc/std.vcf" ) );
00028 mFileNameItem->setLabel( i18n("FileName") );
00029 addItem( mFileNameItem, QString::fromLatin1( "FileName" ) );
00030 mArchiveDeletedItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ArchiveDeleted" ), mArchiveDeleted, true );
00031 mArchiveDeletedItem->setLabel( i18n("ArchiveDeleted") );
00032 addItem( mArchiveDeletedItem, QString::fromLatin1( "ArchiveDeleted" ) );
00033 mConflictResolutionItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "ConflictResolve" ), mConflictResolution, -1 );
00034 mConflictResolutionItem->setLabel( i18n("ConflictResolve") );
00035 addItem( mConflictResolutionItem, QString::fromLatin1( "ConflictResolution" ) );
00036 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesPilotOther;
00037 {
00038 KConfigSkeleton::ItemEnum::Choice choice;
00039 choice.name = QString::fromLatin1( "eOtherPhone" );
00040 valuesPilotOther.append( choice );
00041 }
00042 {
00043 KConfigSkeleton::ItemEnum::Choice choice;
00044 choice.name = QString::fromLatin1( "eAssistant" );
00045 valuesPilotOther.append( choice );
00046 }
00047 {
00048 KConfigSkeleton::ItemEnum::Choice choice;
00049 choice.name = QString::fromLatin1( "eBusinessFax" );
00050 valuesPilotOther.append( choice );
00051 }
00052 {
00053 KConfigSkeleton::ItemEnum::Choice choice;
00054 choice.name = QString::fromLatin1( "eCarPhone" );
00055 valuesPilotOther.append( choice );
00056 }
00057 {
00058 KConfigSkeleton::ItemEnum::Choice choice;
00059 choice.name = QString::fromLatin1( "eEmail2" );
00060 valuesPilotOther.append( choice );
00061 }
00062 {
00063 KConfigSkeleton::ItemEnum::Choice choice;
00064 choice.name = QString::fromLatin1( "eHomeFax" );
00065 valuesPilotOther.append( choice );
00066 }
00067 {
00068 KConfigSkeleton::ItemEnum::Choice choice;
00069 choice.name = QString::fromLatin1( "eTelex" );
00070 valuesPilotOther.append( choice );
00071 }
00072 {
00073 KConfigSkeleton::ItemEnum::Choice choice;
00074 choice.name = QString::fromLatin1( "eTTYTTDPhone" );
00075 valuesPilotOther.append( choice );
00076 }
00077 mPilotOtherItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "PilotOther" ), mPilotOther, valuesPilotOther, eAssistant );
00078 mPilotOtherItem->setLabel( i18n("PilotOther") );
00079 addItem( mPilotOtherItem, QString::fromLatin1( "PilotOther" ) );
00080 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesPilotStreet;
00081 {
00082 KConfigSkeleton::ItemEnum::Choice choice;
00083 choice.name = QString::fromLatin1( "ePilotStreetHome" );
00084 valuesPilotStreet.append( choice );
00085 }
00086 {
00087 KConfigSkeleton::ItemEnum::Choice choice;
00088 choice.name = QString::fromLatin1( "ePilotStreetWork" );
00089 valuesPilotStreet.append( choice );
00090 }
00091 mPilotStreetItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "PilotStreet" ), mPilotStreet, valuesPilotStreet, ePilotStreetHome );
00092 mPilotStreetItem->setLabel( i18n("PilotStreet") );
00093 addItem( mPilotStreetItem, QString::fromLatin1( "PilotStreet" ) );
00094 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesPilotFax;
00095 {
00096 KConfigSkeleton::ItemEnum::Choice choice;
00097 choice.name = QString::fromLatin1( "ePilotFaxHome" );
00098 valuesPilotFax.append( choice );
00099 }
00100 {
00101 KConfigSkeleton::ItemEnum::Choice choice;
00102 choice.name = QString::fromLatin1( "ePilotFaxWork" );
00103 valuesPilotFax.append( choice );
00104 }
00105 mPilotFaxItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "PilotFax" ), mPilotFax, valuesPilotFax, ePilotFaxHome );
00106 mPilotFaxItem->setLabel( i18n("PilotFax") );
00107 addItem( mPilotFaxItem, QString::fromLatin1( "PilotFax" ) );
00108 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesCustom0;
00109 {
00110 KConfigSkeleton::ItemEnum::Choice choice;
00111 choice.name = QString::fromLatin1( "eCustomField" );
00112 valuesCustom0.append( choice );
00113 }
00114 {
00115 KConfigSkeleton::ItemEnum::Choice choice;
00116 choice.name = QString::fromLatin1( "eCustomBirthdate" );
00117 valuesCustom0.append( choice );
00118 }
00119 {
00120 KConfigSkeleton::ItemEnum::Choice choice;
00121 choice.name = QString::fromLatin1( "eCustomURL" );
00122 valuesCustom0.append( choice );
00123 }
00124 {
00125 KConfigSkeleton::ItemEnum::Choice choice;
00126 choice.name = QString::fromLatin1( "eCustomIM" );
00127 valuesCustom0.append( choice );
00128 }
00129 mCustom0Item = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Custom 0" ), mCustom0, valuesCustom0, eCustomField );
00130 mCustom0Item->setLabel( i18n("Custom 0") );
00131 addItem( mCustom0Item, QString::fromLatin1( "Custom0" ) );
00132 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesCustom1;
00133 mCustom1Item = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Custom 1" ), mCustom1, valuesCustom1, eCustomField );
00134 mCustom1Item->setLabel( i18n("Custom 1") );
00135 addItem( mCustom1Item, QString::fromLatin1( "Custom1" ) );
00136 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesCustom2;
00137 mCustom2Item = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Custom 2" ), mCustom2, valuesCustom2, eCustomField );
00138 mCustom2Item->setLabel( i18n("Custom 2") );
00139 addItem( mCustom2Item, QString::fromLatin1( "Custom2" ) );
00140 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesCustom3;
00141 mCustom3Item = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Custom 3" ), mCustom3, valuesCustom3, eCustomField );
00142 mCustom3Item->setLabel( i18n("Custom 3") );
00143 addItem( mCustom3Item, QString::fromLatin1( "Custom3" ) );
00144 mCustomDateFormatItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "CustomDateFormat" ), mCustomDateFormat );
00145 mCustomDateFormatItem->setLabel( i18n("CustomDateFormat") );
00146 addItem( mCustomDateFormatItem, QString::fromLatin1( "CustomDateFormat" ) );
00147 }
00148
00149 KPilotWizard_addressConfig::~KPilotWizard_addressConfig()
00150 {
00151 }
00152