libkcal
htmlexportsettings.h00001
00002
00003 #ifndef HTMLEXPORTSETTINGS_H
00004 #define HTMLEXPORTSETTINGS_H
00005
00006 #include <kconfigskeleton.h>
00007 #include <kdebug.h>
00008
00009 class KDE_EXPORT HTMLExportSettings : public KConfigSkeleton
00010 {
00011 public:
00012
00013 HTMLExportSettings( const QString & application );
00014 ~HTMLExportSettings();
00015
00019 void setName( const QString & v )
00020 {
00021 if (!isImmutable( QString::fromLatin1( "Name" ) ))
00022 mName = v;
00023 }
00024
00028 QString name() const
00029 {
00030 return mName;
00031 }
00032
00036 ItemString *nameItem()
00037 {
00038 return mNameItem;
00039 }
00040
00044 void setEMail( const QString & v )
00045 {
00046 if (!isImmutable( QString::fromLatin1( "EMail" ) ))
00047 mEMail = v;
00048 }
00049
00053 QString eMail() const
00054 {
00055 return mEMail;
00056 }
00057
00061 ItemString *eMailItem()
00062 {
00063 return mEMailItem;
00064 }
00065
00069 void setCreditName( const QString & v )
00070 {
00071 if (!isImmutable( QString::fromLatin1( "CreditName" ) ))
00072 mCreditName = v;
00073 }
00074
00078 QString creditName() const
00079 {
00080 return mCreditName;
00081 }
00082
00086 ItemString *creditNameItem()
00087 {
00088 return mCreditNameItem;
00089 }
00090
00094 void setCreditURL( const QString & v )
00095 {
00096 if (!isImmutable( QString::fromLatin1( "CreditURL" ) ))
00097 mCreditURL = v;
00098 }
00099
00103 QString creditURL() const
00104 {
00105 return mCreditURL;
00106 }
00107
00111 ItemString *creditURLItem()
00112 {
00113 return mCreditURLItem;
00114 }
00115
00119 void setPageTitle( const QString & v )
00120 {
00121 if (!isImmutable( QString::fromLatin1( "PageTitle" ) ))
00122 mPageTitle = v;
00123 }
00124
00128 QString pageTitle() const
00129 {
00130 return mPageTitle;
00131 }
00132
00136 ItemString *pageTitleItem()
00137 {
00138 return mPageTitleItem;
00139 }
00140
00144 void setDateStart( const QDateTime & v )
00145 {
00146 if (!isImmutable( QString::fromLatin1( "DateStart" ) ))
00147 mDateStart = v;
00148 }
00149
00153 QDateTime dateStart() const
00154 {
00155 return mDateStart;
00156 }
00157
00161 ItemDateTime *dateStartItem()
00162 {
00163 return mDateStartItem;
00164 }
00165
00169 void setDateEnd( const QDateTime & v )
00170 {
00171 if (!isImmutable( QString::fromLatin1( "DateEnd" ) ))
00172 mDateEnd = v;
00173 }
00174
00178 QDateTime dateEnd() const
00179 {
00180 return mDateEnd;
00181 }
00182
00186 ItemDateTime *dateEndItem()
00187 {
00188 return mDateEndItem;
00189 }
00190
00194 void setOutputFile( const QString & v )
00195 {
00196 if (!isImmutable( QString::fromLatin1( "OutputFile" ) ))
00197 mOutputFile = v;
00198 }
00199
00203 QString outputFile() const
00204 {
00205 return mOutputFile;
00206 }
00207
00211 ItemPath *outputFileItem()
00212 {
00213 return mOutputFileItem;
00214 }
00215
00219 void setStyleSheet( const QString & v )
00220 {
00221 if (!isImmutable( QString::fromLatin1( "StyleSheet" ) ))
00222 mStyleSheet = v;
00223 }
00224
00228 QString styleSheet() const
00229 {
00230 return mStyleSheet;
00231 }
00232
00236 ItemString *styleSheetItem()
00237 {
00238 return mStyleSheetItem;
00239 }
00240
00244 void setExcludePrivate( bool v )
00245 {
00246 if (!isImmutable( QString::fromLatin1( "ExcludePrivate" ) ))
00247 mExcludePrivate = v;
00248 }
00249
00253 bool excludePrivate() const
00254 {
00255 return mExcludePrivate;
00256 }
00257
00261 ItemBool *excludePrivateItem()
00262 {
00263 return mExcludePrivateItem;
00264 }
00265
00269 void setExcludeConfidential( bool v )
00270 {
00271 if (!isImmutable( QString::fromLatin1( "ExcludeConfidential" ) ))
00272 mExcludeConfidential = v;
00273 }
00274
00278 bool excludeConfidential() const
00279 {
00280 return mExcludeConfidential;
00281 }
00282
00286 ItemBool *excludeConfidentialItem()
00287 {
00288 return mExcludeConfidentialItem;
00289 }
00290
00294 void setEventView( bool v )
00295 {
00296 if (!isImmutable( QString::fromLatin1( "EventView" ) ))
00297 mEventView = v;
00298 }
00299
00303 bool eventView() const
00304 {
00305 return mEventView;
00306 }
00307
00311 ItemBool *eventViewItem()
00312 {
00313 return mEventViewItem;
00314 }
00315
00319 void setMonthView( bool v )
00320 {
00321 if (!isImmutable( QString::fromLatin1( "MonthView" ) ))
00322 mMonthView = v;
00323 }
00324
00328 bool monthView() const
00329 {
00330 return mMonthView;
00331 }
00332
00336 ItemBool *monthViewItem()
00337 {
00338 return mMonthViewItem;
00339 }
00340
00344 void setWeekView( bool v )
00345 {
00346 if (!isImmutable( QString::fromLatin1( "WeekView" ) ))
00347 mWeekView = v;
00348 }
00349
00353 bool weekView() const
00354 {
00355 return mWeekView;
00356 }
00357
00361 ItemBool *weekViewItem()
00362 {
00363 return mWeekViewItem;
00364 }
00365
00369 void setEventTitle( const QString & v )
00370 {
00371 if (!isImmutable( QString::fromLatin1( "EventTitle" ) ))
00372 mEventTitle = v;
00373 }
00374
00378 QString eventTitle() const
00379 {
00380 return mEventTitle;
00381 }
00382
00386 ItemString *eventTitleItem()
00387 {
00388 return mEventTitleItem;
00389 }
00390
00394 void setEventLocation( bool v )
00395 {
00396 if (!isImmutable( QString::fromLatin1( "EventLocation" ) ))
00397 mEventLocation = v;
00398 }
00399
00403 bool eventLocation() const
00404 {
00405 return mEventLocation;
00406 }
00407
00411 ItemBool *eventLocationItem()
00412 {
00413 return mEventLocationItem;
00414 }
00415
00419 void setEventCategories( bool v )
00420 {
00421 if (!isImmutable( QString::fromLatin1( "EventCategories" ) ))
00422 mEventCategories = v;
00423 }
00424
00428 bool eventCategories() const
00429 {
00430 return mEventCategories;
00431 }
00432
00436 ItemBool *eventCategoriesItem()
00437 {
00438 return mEventCategoriesItem;
00439 }
00440
00444 void setEventAttendees( bool v )
00445 {
00446 if (!isImmutable( QString::fromLatin1( "EventAttendees" ) ))
00447 mEventAttendees = v;
00448 }
00449
00453 bool eventAttendees() const
00454 {
00455 return mEventAttendees;
00456 }
00457
00461 ItemBool *eventAttendeesItem()
00462 {
00463 return mEventAttendeesItem;
00464 }
00465
00469 void setTodoView( bool v )
00470 {
00471 if (!isImmutable( QString::fromLatin1( "TodoView" ) ))
00472 mTodoView = v;
00473 }
00474
00478 bool todoView() const
00479 {
00480 return mTodoView;
00481 }
00482
00486 ItemBool *todoViewItem()
00487 {
00488 return mTodoViewItem;
00489 }
00490
00494 void setTodoListTitle( const QString & v )
00495 {
00496 if (!isImmutable( QString::fromLatin1( "TodoListTitle" ) ))
00497 mTodoListTitle = v;
00498 }
00499
00503 QString todoListTitle() const
00504 {
00505 return mTodoListTitle;
00506 }
00507
00511 ItemString *todoListTitleItem()
00512 {
00513 return mTodoListTitleItem;
00514 }
00515
00519 void setTaskDueDate( bool v )
00520 {
00521 if (!isImmutable( QString::fromLatin1( "TaskDueDate" ) ))
00522 mTaskDueDate = v;
00523 }
00524
00528 bool taskDueDate() const
00529 {
00530 return mTaskDueDate;
00531 }
00532
00536 ItemBool *taskDueDateItem()
00537 {
00538 return mTaskDueDateItem;
00539 }
00540
00544 void setTaskLocation( bool v )
00545 {
00546 if (!isImmutable( QString::fromLatin1( "TaskLocation" ) ))
00547 mTaskLocation = v;
00548 }
00549
00553 bool taskLocation() const
00554 {
00555 return mTaskLocation;
00556 }
00557
00561 ItemBool *taskLocationItem()
00562 {
00563 return mTaskLocationItem;
00564 }
00565
00569 void setTaskCategories( bool v )
00570 {
00571 if (!isImmutable( QString::fromLatin1( "TaskCategories" ) ))
00572 mTaskCategories = v;
00573 }
00574
00578 bool taskCategories() const
00579 {
00580 return mTaskCategories;
00581 }
00582
00586 ItemBool *taskCategoriesItem()
00587 {
00588 return mTaskCategoriesItem;
00589 }
00590
00594 void setTaskAttendees( bool v )
00595 {
00596 if (!isImmutable( QString::fromLatin1( "TaskAttendees" ) ))
00597 mTaskAttendees = v;
00598 }
00599
00603 bool taskAttendees() const
00604 {
00605 return mTaskAttendees;
00606 }
00607
00611 ItemBool *taskAttendeesItem()
00612 {
00613 return mTaskAttendeesItem;
00614 }
00615
00619 void setJournalView( bool v )
00620 {
00621 if (!isImmutable( QString::fromLatin1( "JournalView" ) ))
00622 mJournalView = v;
00623 }
00624
00628 bool journalView() const
00629 {
00630 return mJournalView;
00631 }
00632
00636 ItemBool *journalViewItem()
00637 {
00638 return mJournalViewItem;
00639 }
00640
00644 void setJournalTitle( const QString & v )
00645 {
00646 if (!isImmutable( QString::fromLatin1( "JournalTitle" ) ))
00647 mJournalTitle = v;
00648 }
00649
00653 QString journalTitle() const
00654 {
00655 return mJournalTitle;
00656 }
00657
00661 ItemString *journalTitleItem()
00662 {
00663 return mJournalTitleItem;
00664 }
00665
00669 void setFreeBusyView( bool v )
00670 {
00671 if (!isImmutable( QString::fromLatin1( "FreeBusyView" ) ))
00672 mFreeBusyView = v;
00673 }
00674
00678 bool freeBusyView() const
00679 {
00680 return mFreeBusyView;
00681 }
00682
00686 ItemBool *freeBusyViewItem()
00687 {
00688 return mFreeBusyViewItem;
00689 }
00690
00694 void setFreeBusyTitle( const QString & v )
00695 {
00696 if (!isImmutable( QString::fromLatin1( "FreeBusyTitle" ) ))
00697 mFreeBusyTitle = v;
00698 }
00699
00703 QString freeBusyTitle() const
00704 {
00705 return mFreeBusyTitle;
00706 }
00707
00711 ItemString *freeBusyTitleItem()
00712 {
00713 return mFreeBusyTitleItem;
00714 }
00715
00716 protected:
00717 public:
00718 QString mParamapplication;
00719
00720
00721 QString mName;
00722 QString mEMail;
00723 QString mCreditName;
00724 QString mCreditURL;
00725 QString mPageTitle;
00726 QDateTime mDateStart;
00727 QDateTime mDateEnd;
00728 QString mOutputFile;
00729 QString mStyleSheet;
00730 bool mExcludePrivate;
00731 bool mExcludeConfidential;
00732
00733
00734 bool mEventView;
00735 bool mMonthView;
00736 bool mWeekView;
00737 QString mEventTitle;
00738 bool mEventLocation;
00739 bool mEventCategories;
00740 bool mEventAttendees;
00741
00742
00743 bool mTodoView;
00744 QString mTodoListTitle;
00745 bool mTaskDueDate;
00746 bool mTaskLocation;
00747 bool mTaskCategories;
00748 bool mTaskAttendees;
00749
00750
00751 bool mJournalView;
00752 QString mJournalTitle;
00753
00754
00755 bool mFreeBusyView;
00756 QString mFreeBusyTitle;
00757
00758 private:
00759 ItemString *mNameItem;
00760 ItemString *mEMailItem;
00761 ItemString *mCreditNameItem;
00762 ItemString *mCreditURLItem;
00763 ItemString *mPageTitleItem;
00764 ItemDateTime *mDateStartItem;
00765 ItemDateTime *mDateEndItem;
00766 ItemPath *mOutputFileItem;
00767 ItemString *mStyleSheetItem;
00768 ItemBool *mExcludePrivateItem;
00769 ItemBool *mExcludeConfidentialItem;
00770 ItemBool *mEventViewItem;
00771 ItemBool *mMonthViewItem;
00772 ItemBool *mWeekViewItem;
00773 ItemString *mEventTitleItem;
00774 ItemBool *mEventLocationItem;
00775 ItemBool *mEventCategoriesItem;
00776 ItemBool *mEventAttendeesItem;
00777 ItemBool *mTodoViewItem;
00778 ItemString *mTodoListTitleItem;
00779 ItemBool *mTaskDueDateItem;
00780 ItemBool *mTaskLocationItem;
00781 ItemBool *mTaskCategoriesItem;
00782 ItemBool *mTaskAttendeesItem;
00783 ItemBool *mJournalViewItem;
00784 ItemString *mJournalTitleItem;
00785 ItemBool *mFreeBusyViewItem;
00786 ItemString *mFreeBusyTitleItem;
00787 };
00788
00789 #endif
00790
|