3 #ifndef CONTACTACTIONSSETTINGS_H
4 #define CONTACTACTIONSSETTINGS_H
6 #include <kconfigskeleton.h>
9 class ContactActionsSettings :
public KConfigSkeleton
12 enum EnumShowAddressAction { UseBrowser, UseExternalAddressApplication, UseGooglemap, UseMapquest };
13 enum EnumDialPhoneNumberAction { UseSkype, UseExternalPhoneApplication, UseWinCE, UseSflPhone, UseEkiga };
14 enum EnumSendSmsAction { UseSkypeSms, UseExternalSmsApplication, UseWinCESms, UseSflPhoneSms };
16 static ContactActionsSettings *
self();
17 ~ContactActionsSettings();
23 void setShowAddressAction(
int v )
25 if (!
self()->isImmutable( QString::fromLatin1(
"ShowAddressAction" ) ))
26 self()->mShowAddressAction = v;
33 int showAddressAction()
35 return self()->mShowAddressAction;
41 ItemEnum *showAddressActionItem()
43 return mShowAddressActionItem;
50 void setAddressUrl(
const QString & v )
52 if (!
self()->isImmutable( QString::fromLatin1(
"AddressUrl" ) ))
53 self()->mAddressUrl = v;
62 return self()->mAddressUrl;
68 ItemString *addressUrlItem()
70 return mAddressUrlItem;
77 void setAddressCommand(
const QString & v )
79 if (!
self()->isImmutable( QString::fromLatin1(
"AddressCommand" ) ))
80 self()->mAddressCommand = v;
87 QString addressCommand()
89 return self()->mAddressCommand;
95 ItemString *addressCommandItem()
97 return mAddressCommandItem;
104 void setDialPhoneNumberAction(
int v )
106 if (!
self()->isImmutable( QString::fromLatin1(
"DialPhoneNumberAction" ) ))
107 self()->mDialPhoneNumberAction = v;
114 int dialPhoneNumberAction()
116 return self()->mDialPhoneNumberAction;
122 ItemEnum *dialPhoneNumberActionItem()
124 return mDialPhoneNumberActionItem;
131 void setPhoneCommand(
const QString & v )
133 if (!
self()->isImmutable( QString::fromLatin1(
"PhoneCommand" ) ))
134 self()->mPhoneCommand = v;
141 QString phoneCommand()
143 return self()->mPhoneCommand;
149 ItemString *phoneCommandItem()
151 return mPhoneCommandItem;
158 void setSendSmsAction(
int v )
160 if (!
self()->isImmutable( QString::fromLatin1(
"SendSmsAction" ) ))
161 self()->mSendSmsAction = v;
170 return self()->mSendSmsAction;
176 ItemEnum *sendSmsActionItem()
178 return mSendSmsActionItem;
185 void setSmsCommand(
const QString & v )
187 if (!
self()->isImmutable( QString::fromLatin1(
"SmsCommand" ) ))
188 self()->mSmsCommand = v;
197 return self()->mSmsCommand;
203 ItemString *smsCommandItem()
205 return mSmsCommandItem;
209 ContactActionsSettings();
210 friend class ContactActionsSettingsHelper;
214 int mShowAddressAction;
216 QString mAddressCommand;
219 int mDialPhoneNumberAction;
220 QString mPhoneCommand;
227 ItemEnum *mShowAddressActionItem;
228 ItemString *mAddressUrlItem;
229 ItemString *mAddressCommandItem;
230 ItemEnum *mDialPhoneNumberActionItem;
231 ItemString *mPhoneCommandItem;
232 ItemEnum *mSendSmsActionItem;
233 ItemString *mSmsCommandItem;