kandy
kandyprefs.h00001
00002
00003 #ifndef KANDYPREFS_H
00004 #define KANDYPREFS_H
00005
00006 #include <kconfigskeleton.h>
00007 #include <kdebug.h>
00008
00009 class KandyPrefs : public KConfigSkeleton
00010 {
00011 public:
00012
00013 static KandyPrefs *self();
00014 ~KandyPrefs();
00015
00019 static
00020 void setSerialDevice( const QString & v )
00021 {
00022 if (!self()->isImmutable( QString::fromLatin1( "SerialDevice" ) ))
00023 self()->mSerialDevice = v;
00024 }
00025
00029 static
00030 QString serialDevice()
00031 {
00032 return self()->mSerialDevice;
00033 }
00034
00038 ItemString *serialDeviceItem()
00039 {
00040 return mSerialDeviceItem;
00041 }
00042
00046 static
00047 void setBaudRate( const QString & v )
00048 {
00049 if (!self()->isImmutable( QString::fromLatin1( "BaudRate" ) ))
00050 self()->mBaudRate = v;
00051 }
00052
00056 static
00057 QString baudRate()
00058 {
00059 return self()->mBaudRate;
00060 }
00061
00065 ItemString *baudRateItem()
00066 {
00067 return mBaudRateItem;
00068 }
00069
00073 static
00074 void setLockDirectory( const QString & v )
00075 {
00076 if (!self()->isImmutable( QString::fromLatin1( "LockDirectory" ) ))
00077 self()->mLockDirectory = v;
00078 }
00079
00083 static
00084 QString lockDirectory()
00085 {
00086 return self()->mLockDirectory;
00087 }
00088
00092 ItemString *lockDirectoryItem()
00093 {
00094 return mLockDirectoryItem;
00095 }
00096
00100 static
00101 void setStartupModem( bool v )
00102 {
00103 if (!self()->isImmutable( QString::fromLatin1( "StartupModem" ) ))
00104 self()->mStartupModem = v;
00105 }
00106
00110 static
00111 bool startupModem()
00112 {
00113 return self()->mStartupModem;
00114 }
00115
00119 ItemBool *startupModemItem()
00120 {
00121 return mStartupModemItem;
00122 }
00123
00127 static
00128 void setAutoSetClock( bool v )
00129 {
00130 if (!self()->isImmutable( QString::fromLatin1( "AutoSetClock" ) ))
00131 self()->mAutoSetClock = v;
00132 }
00133
00137 static
00138 bool autoSetClock()
00139 {
00140 return self()->mAutoSetClock;
00141 }
00142
00146 ItemBool *autoSetClockItem()
00147 {
00148 return mAutoSetClockItem;
00149 }
00150
00154 static
00155 void setExcludeHome( bool v )
00156 {
00157 if (!self()->isImmutable( QString::fromLatin1( "ExcludeHome" ) ))
00158 self()->mExcludeHome = v;
00159 }
00160
00164 static
00165 bool excludeHome()
00166 {
00167 return self()->mExcludeHome;
00168 }
00169
00173 ItemBool *excludeHomeItem()
00174 {
00175 return mExcludeHomeItem;
00176 }
00177
00181 static
00182 void setExcludeWork( bool v )
00183 {
00184 if (!self()->isImmutable( QString::fromLatin1( "ExcludeWork" ) ))
00185 self()->mExcludeWork = v;
00186 }
00187
00191 static
00192 bool excludeWork()
00193 {
00194 return self()->mExcludeWork;
00195 }
00196
00200 ItemBool *excludeWorkItem()
00201 {
00202 return mExcludeWorkItem;
00203 }
00204
00208 static
00209 void setExcludeMessaging( bool v )
00210 {
00211 if (!self()->isImmutable( QString::fromLatin1( "ExcludeMessaging" ) ))
00212 self()->mExcludeMessaging = v;
00213 }
00214
00218 static
00219 bool excludeMessaging()
00220 {
00221 return self()->mExcludeMessaging;
00222 }
00223
00227 ItemBool *excludeMessagingItem()
00228 {
00229 return mExcludeMessagingItem;
00230 }
00231
00235 static
00236 void setExcludeFax( bool v )
00237 {
00238 if (!self()->isImmutable( QString::fromLatin1( "ExcludeFax" ) ))
00239 self()->mExcludeFax = v;
00240 }
00241
00245 static
00246 bool excludeFax()
00247 {
00248 return self()->mExcludeFax;
00249 }
00250
00254 ItemBool *excludeFaxItem()
00255 {
00256 return mExcludeFaxItem;
00257 }
00258
00262 static
00263 void setExcludeCell( bool v )
00264 {
00265 if (!self()->isImmutable( QString::fromLatin1( "ExcludeCell" ) ))
00266 self()->mExcludeCell = v;
00267 }
00268
00272 static
00273 bool excludeCell()
00274 {
00275 return self()->mExcludeCell;
00276 }
00277
00281 ItemBool *excludeCellItem()
00282 {
00283 return mExcludeCellItem;
00284 }
00285
00289 static
00290 void setExcludeVideo( bool v )
00291 {
00292 if (!self()->isImmutable( QString::fromLatin1( "ExcludeVideo" ) ))
00293 self()->mExcludeVideo = v;
00294 }
00295
00299 static
00300 bool excludeVideo()
00301 {
00302 return self()->mExcludeVideo;
00303 }
00304
00308 ItemBool *excludeVideoItem()
00309 {
00310 return mExcludeVideoItem;
00311 }
00312
00316 static
00317 void setExcludeMailbox( bool v )
00318 {
00319 if (!self()->isImmutable( QString::fromLatin1( "ExcludeMailbox" ) ))
00320 self()->mExcludeMailbox = v;
00321 }
00322
00326 static
00327 bool excludeMailbox()
00328 {
00329 return self()->mExcludeMailbox;
00330 }
00331
00335 ItemBool *excludeMailboxItem()
00336 {
00337 return mExcludeMailboxItem;
00338 }
00339
00343 static
00344 void setExcludeModem( bool v )
00345 {
00346 if (!self()->isImmutable( QString::fromLatin1( "ExcludeModem" ) ))
00347 self()->mExcludeModem = v;
00348 }
00349
00353 static
00354 bool excludeModem()
00355 {
00356 return self()->mExcludeModem;
00357 }
00358
00362 ItemBool *excludeModemItem()
00363 {
00364 return mExcludeModemItem;
00365 }
00366
00370 static
00371 void setExcludeCar( bool v )
00372 {
00373 if (!self()->isImmutable( QString::fromLatin1( "ExcludeCar" ) ))
00374 self()->mExcludeCar = v;
00375 }
00376
00380 static
00381 bool excludeCar()
00382 {
00383 return self()->mExcludeCar;
00384 }
00385
00389 ItemBool *excludeCarItem()
00390 {
00391 return mExcludeCarItem;
00392 }
00393
00397 static
00398 void setExcludeISDN( bool v )
00399 {
00400 if (!self()->isImmutable( QString::fromLatin1( "ExcludeISDN" ) ))
00401 self()->mExcludeISDN = v;
00402 }
00403
00407 static
00408 bool excludeISDN()
00409 {
00410 return self()->mExcludeISDN;
00411 }
00412
00416 ItemBool *excludeISDNItem()
00417 {
00418 return mExcludeISDNItem;
00419 }
00420
00424 static
00425 void setExcludePager( bool v )
00426 {
00427 if (!self()->isImmutable( QString::fromLatin1( "ExcludePager" ) ))
00428 self()->mExcludePager = v;
00429 }
00430
00434 static
00435 bool excludePager()
00436 {
00437 return self()->mExcludePager;
00438 }
00439
00443 ItemBool *excludePagerItem()
00444 {
00445 return mExcludePagerItem;
00446 }
00447
00451 static
00452 void setUseHomeSuff( bool v )
00453 {
00454 if (!self()->isImmutable( QString::fromLatin1( "UseHomeSuff" ) ))
00455 self()->mUseHomeSuff = v;
00456 }
00457
00461 static
00462 bool useHomeSuff()
00463 {
00464 return self()->mUseHomeSuff;
00465 }
00466
00470 ItemBool *useHomeSuffItem()
00471 {
00472 return mUseHomeSuffItem;
00473 }
00474
00478 static
00479 void setUseWorkSuff( bool v )
00480 {
00481 if (!self()->isImmutable( QString::fromLatin1( "UseWorkSuff" ) ))
00482 self()->mUseWorkSuff = v;
00483 }
00484
00488 static
00489 bool useWorkSuff()
00490 {
00491 return self()->mUseWorkSuff;
00492 }
00493
00497 ItemBool *useWorkSuffItem()
00498 {
00499 return mUseWorkSuffItem;
00500 }
00501
00505 static
00506 void setUseMessagingSuff( bool v )
00507 {
00508 if (!self()->isImmutable( QString::fromLatin1( "UseMessagingSuff" ) ))
00509 self()->mUseMessagingSuff = v;
00510 }
00511
00515 static
00516 bool useMessagingSuff()
00517 {
00518 return self()->mUseMessagingSuff;
00519 }
00520
00524 ItemBool *useMessagingSuffItem()
00525 {
00526 return mUseMessagingSuffItem;
00527 }
00528
00532 static
00533 void setUseFaxSuff( bool v )
00534 {
00535 if (!self()->isImmutable( QString::fromLatin1( "UseFaxSuff" ) ))
00536 self()->mUseFaxSuff = v;
00537 }
00538
00542 static
00543 bool useFaxSuff()
00544 {
00545 return self()->mUseFaxSuff;
00546 }
00547
00551 ItemBool *useFaxSuffItem()
00552 {
00553 return mUseFaxSuffItem;
00554 }
00555
00559 static
00560 void setUseCellSuff( bool v )
00561 {
00562 if (!self()->isImmutable( QString::fromLatin1( "UseCellSuff" ) ))
00563 self()->mUseCellSuff = v;
00564 }
00565
00569 static
00570 bool useCellSuff()
00571 {
00572 return self()->mUseCellSuff;
00573 }
00574
00578 ItemBool *useCellSuffItem()
00579 {
00580 return mUseCellSuffItem;
00581 }
00582
00586 static
00587 void setUseVideoSuff( bool v )
00588 {
00589 if (!self()->isImmutable( QString::fromLatin1( "UseVideoSuff" ) ))
00590 self()->mUseVideoSuff = v;
00591 }
00592
00596 static
00597 bool useVideoSuff()
00598 {
00599 return self()->mUseVideoSuff;
00600 }
00601
00605 ItemBool *useVideoSuffItem()
00606 {
00607 return mUseVideoSuffItem;
00608 }
00609
00613 static
00614 void setUseMailboxSuff( bool v )
00615 {
00616 if (!self()->isImmutable( QString::fromLatin1( "UseMailboxSuff" ) ))
00617 self()->mUseMailboxSuff = v;
00618 }
00619
00623 static
00624 bool useMailboxSuff()
00625 {
00626 return self()->mUseMailboxSuff;
00627 }
00628
00632 ItemBool *useMailboxSuffItem()
00633 {
00634 return mUseMailboxSuffItem;
00635 }
00636
00640 static
00641 void setUseModemSuff( bool v )
00642 {
00643 if (!self()->isImmutable( QString::fromLatin1( "UseModemSuff" ) ))
00644 self()->mUseModemSuff = v;
00645 }
00646
00650 static
00651 bool useModemSuff()
00652 {
00653 return self()->mUseModemSuff;
00654 }
00655
00659 ItemBool *useModemSuffItem()
00660 {
00661 return mUseModemSuffItem;
00662 }
00663
00667 static
00668 void setUseCarSuff( bool v )
00669 {
00670 if (!self()->isImmutable( QString::fromLatin1( "UseCarSuff" ) ))
00671 self()->mUseCarSuff = v;
00672 }
00673
00677 static
00678 bool useCarSuff()
00679 {
00680 return self()->mUseCarSuff;
00681 }
00682
00686 ItemBool *useCarSuffItem()
00687 {
00688 return mUseCarSuffItem;
00689 }
00690
00694 static
00695 void setUseISDNSuff( bool v )
00696 {
00697 if (!self()->isImmutable( QString::fromLatin1( "UseISDNSuff" ) ))
00698 self()->mUseISDNSuff = v;
00699 }
00700
00704 static
00705 bool useISDNSuff()
00706 {
00707 return self()->mUseISDNSuff;
00708 }
00709
00713 ItemBool *useISDNSuffItem()
00714 {
00715 return mUseISDNSuffItem;
00716 }
00717
00721 static
00722 void setUsePagerSuff( bool v )
00723 {
00724 if (!self()->isImmutable( QString::fromLatin1( "UsePagerSuff" ) ))
00725 self()->mUsePagerSuff = v;
00726 }
00727
00731 static
00732 bool usePagerSuff()
00733 {
00734 return self()->mUsePagerSuff;
00735 }
00736
00740 ItemBool *usePagerSuffItem()
00741 {
00742 return mUsePagerSuffItem;
00743 }
00744
00748 static
00749 void setHomeSuff( const QString & v )
00750 {
00751 if (!self()->isImmutable( QString::fromLatin1( "HomeSuff" ) ))
00752 self()->mHomeSuff = v;
00753 }
00754
00758 static
00759 QString homeSuff()
00760 {
00761 return self()->mHomeSuff;
00762 }
00763
00767 ItemString *homeSuffItem()
00768 {
00769 return mHomeSuffItem;
00770 }
00771
00775 static
00776 void setWorkSuff( const QString & v )
00777 {
00778 if (!self()->isImmutable( QString::fromLatin1( "WorkSuff" ) ))
00779 self()->mWorkSuff = v;
00780 }
00781
00785 static
00786 QString workSuff()
00787 {
00788 return self()->mWorkSuff;
00789 }
00790
00794 ItemString *workSuffItem()
00795 {
00796 return mWorkSuffItem;
00797 }
00798
00802 static
00803 void setMessagingSuff( const QString & v )
00804 {
00805 if (!self()->isImmutable( QString::fromLatin1( "MessagingSuff" ) ))
00806 self()->mMessagingSuff = v;
00807 }
00808
00812 static
00813 QString messagingSuff()
00814 {
00815 return self()->mMessagingSuff;
00816 }
00817
00821 ItemString *messagingSuffItem()
00822 {
00823 return mMessagingSuffItem;
00824 }
00825
00829 static
00830 void setFaxSuff( const QString & v )
00831 {
00832 if (!self()->isImmutable( QString::fromLatin1( "FaxSuff" ) ))
00833 self()->mFaxSuff = v;
00834 }
00835
00839 static
00840 QString faxSuff()
00841 {
00842 return self()->mFaxSuff;
00843 }
00844
00848 ItemString *faxSuffItem()
00849 {
00850 return mFaxSuffItem;
00851 }
00852
00856 static
00857 void setCellSuff( const QString & v )
00858 {
00859 if (!self()->isImmutable( QString::fromLatin1( "CellSuff" ) ))
00860 self()->mCellSuff = v;
00861 }
00862
00866 static
00867 QString cellSuff()
00868 {
00869 return self()->mCellSuff;
00870 }
00871
00875 ItemString *cellSuffItem()
00876 {
00877 return mCellSuffItem;
00878 }
00879
00883 static
00884 void setVideoSuff( const QString & v )
00885 {
00886 if (!self()->isImmutable( QString::fromLatin1( "VideoSuff" ) ))
00887 self()->mVideoSuff = v;
00888 }
00889
00893 static
00894 QString videoSuff()
00895 {
00896 return self()->mVideoSuff;
00897 }
00898
00902 ItemString *videoSuffItem()
00903 {
00904 return mVideoSuffItem;
00905 }
00906
00910 static
00911 void setMailboxSuff( const QString & v )
00912 {
00913 if (!self()->isImmutable( QString::fromLatin1( "MailboxSuff" ) ))
00914 self()->mMailboxSuff = v;
00915 }
00916
00920 static
00921 QString mailboxSuff()
00922 {
00923 return self()->mMailboxSuff;
00924 }
00925
00929 ItemString *mailboxSuffItem()
00930 {
00931 return mMailboxSuffItem;
00932 }
00933
00937 static
00938 void setModemSuff( const QString & v )
00939 {
00940 if (!self()->isImmutable( QString::fromLatin1( "ModemSuff" ) ))
00941 self()->mModemSuff = v;
00942 }
00943
00947 static
00948 QString modemSuff()
00949 {
00950 return self()->mModemSuff;
00951 }
00952
00956 ItemString *modemSuffItem()
00957 {
00958 return mModemSuffItem;
00959 }
00960
00964 static
00965 void setCarSuff( const QString & v )
00966 {
00967 if (!self()->isImmutable( QString::fromLatin1( "CarSuff" ) ))
00968 self()->mCarSuff = v;
00969 }
00970
00974 static
00975 QString carSuff()
00976 {
00977 return self()->mCarSuff;
00978 }
00979
00983 ItemString *carSuffItem()
00984 {
00985 return mCarSuffItem;
00986 }
00987
00991 static
00992 void setISDNSuff( const QString & v )
00993 {
00994 if (!self()->isImmutable( QString::fromLatin1( "ISDNSuff" ) ))
00995 self()->mISDNSuff = v;
00996 }
00997
01001 static
01002 QString iSDNSuff()
01003 {
01004 return self()->mISDNSuff;
01005 }
01006
01010 ItemString *iSDNSuffItem()
01011 {
01012 return mISDNSuffItem;
01013 }
01014
01018 static
01019 void setPagerSuff( const QString & v )
01020 {
01021 if (!self()->isImmutable( QString::fromLatin1( "PagerSuff" ) ))
01022 self()->mPagerSuff = v;
01023 }
01024
01028 static
01029 QString pagerSuff()
01030 {
01031 return self()->mPagerSuff;
01032 }
01033
01037 ItemString *pagerSuffItem()
01038 {
01039 return mPagerSuffItem;
01040 }
01041
01045 static
01046 void setStartupTerminalWin( bool v )
01047 {
01048 if (!self()->isImmutable( QString::fromLatin1( "StartupTerminalWin" ) ))
01049 self()->mStartupTerminalWin = v;
01050 }
01051
01055 static
01056 bool startupTerminalWin()
01057 {
01058 return self()->mStartupTerminalWin;
01059 }
01060
01064 ItemBool *startupTerminalWinItem()
01065 {
01066 return mStartupTerminalWinItem;
01067 }
01068
01072 static
01073 void setStartupMobileWin( bool v )
01074 {
01075 if (!self()->isImmutable( QString::fromLatin1( "StartupMobileWin" ) ))
01076 self()->mStartupMobileWin = v;
01077 }
01078
01082 static
01083 bool startupMobileWin()
01084 {
01085 return self()->mStartupMobileWin;
01086 }
01087
01091 ItemBool *startupMobileWinItem()
01092 {
01093 return mStartupMobileWinItem;
01094 }
01095
01096 static
01097 void writeConfig()
01098 {
01099 static_cast<KConfigSkeleton*>(self())->writeConfig();
01100 }
01101 protected:
01102 KandyPrefs();
01103 static KandyPrefs *mSelf;
01104
01105 public:
01106
01107
01108 QString mSerialDevice;
01109 QString mBaudRate;
01110 QString mLockDirectory;
01111 bool mStartupModem;
01112 bool mAutoSetClock;
01113
01114
01115 bool mExcludeHome;
01116 bool mExcludeWork;
01117 bool mExcludeMessaging;
01118 bool mExcludeFax;
01119 bool mExcludeCell;
01120 bool mExcludeVideo;
01121 bool mExcludeMailbox;
01122 bool mExcludeModem;
01123 bool mExcludeCar;
01124 bool mExcludeISDN;
01125 bool mExcludePager;
01126 bool mUseHomeSuff;
01127 bool mUseWorkSuff;
01128 bool mUseMessagingSuff;
01129 bool mUseFaxSuff;
01130 bool mUseCellSuff;
01131 bool mUseVideoSuff;
01132 bool mUseMailboxSuff;
01133 bool mUseModemSuff;
01134 bool mUseCarSuff;
01135 bool mUseISDNSuff;
01136 bool mUsePagerSuff;
01137 QString mHomeSuff;
01138 QString mWorkSuff;
01139 QString mMessagingSuff;
01140 QString mFaxSuff;
01141 QString mCellSuff;
01142 QString mVideoSuff;
01143 QString mMailboxSuff;
01144 QString mModemSuff;
01145 QString mCarSuff;
01146 QString mISDNSuff;
01147 QString mPagerSuff;
01148
01149
01150 bool mStartupTerminalWin;
01151 bool mStartupMobileWin;
01152
01153 private:
01154 ItemString *mSerialDeviceItem;
01155 ItemString *mBaudRateItem;
01156 ItemString *mLockDirectoryItem;
01157 ItemBool *mStartupModemItem;
01158 ItemBool *mAutoSetClockItem;
01159 ItemBool *mExcludeHomeItem;
01160 ItemBool *mExcludeWorkItem;
01161 ItemBool *mExcludeMessagingItem;
01162 ItemBool *mExcludeFaxItem;
01163 ItemBool *mExcludeCellItem;
01164 ItemBool *mExcludeVideoItem;
01165 ItemBool *mExcludeMailboxItem;
01166 ItemBool *mExcludeModemItem;
01167 ItemBool *mExcludeCarItem;
01168 ItemBool *mExcludeISDNItem;
01169 ItemBool *mExcludePagerItem;
01170 ItemBool *mUseHomeSuffItem;
01171 ItemBool *mUseWorkSuffItem;
01172 ItemBool *mUseMessagingSuffItem;
01173 ItemBool *mUseFaxSuffItem;
01174 ItemBool *mUseCellSuffItem;
01175 ItemBool *mUseVideoSuffItem;
01176 ItemBool *mUseMailboxSuffItem;
01177 ItemBool *mUseModemSuffItem;
01178 ItemBool *mUseCarSuffItem;
01179 ItemBool *mUseISDNSuffItem;
01180 ItemBool *mUsePagerSuffItem;
01181 ItemString *mHomeSuffItem;
01182 ItemString *mWorkSuffItem;
01183 ItemString *mMessagingSuffItem;
01184 ItemString *mFaxSuffItem;
01185 ItemString *mCellSuffItem;
01186 ItemString *mVideoSuffItem;
01187 ItemString *mMailboxSuffItem;
01188 ItemString *mModemSuffItem;
01189 ItemString *mCarSuffItem;
01190 ItemString *mISDNSuffItem;
01191 ItemString *mPagerSuffItem;
01192 ItemBool *mStartupTerminalWinItem;
01193 ItemBool *mStartupMobileWinItem;
01194 };
01195
01196 #endif
01197
|