KCal Library
htmlexportsettings.h
00001
00002
00003 #ifndef KCAL_HTMLEXPORTSETTINGS_H
00004 #define KCAL_HTMLEXPORTSETTINGS_H
00005
00006 #include <kconfigskeleton.h>
00007 #include <kdebug.h>
00008
00009 #include <kcal/kcal_export.h>
00010 namespace KCal {
00011
00012 class KCAL_EXPORT HTMLExportSettings : public KConfigSkeleton
00013 {
00014 public:
00015
00016 HTMLExportSettings( const QString & application );
00017 ~HTMLExportSettings();
00018
00022 void setName( const QString & v )
00023 {
00024 if (!isImmutable( QString::fromLatin1 ( "Name" ) ))
00025 mName = v;
00026 }
00027
00031 QString name() const
00032 {
00033 return mName;
00034 }
00035
00039 ItemString *nameItem()
00040 {
00041 return mNameItem;
00042 }
00043
00047 void setEMail( const QString & v )
00048 {
00049 if (!isImmutable( QString::fromLatin1 ( "EMail" ) ))
00050 mEMail = v;
00051 }
00052
00056 QString eMail() const
00057 {
00058 return mEMail;
00059 }
00060
00064 ItemString *eMailItem()
00065 {
00066 return mEMailItem;
00067 }
00068
00072 void setCreditName( const QString & v )
00073 {
00074 if (!isImmutable( QString::fromLatin1 ( "CreditName" ) ))
00075 mCreditName = v;
00076 }
00077
00081 QString creditName() const
00082 {
00083 return mCreditName;
00084 }
00085
00089 ItemString *creditNameItem()
00090 {
00091 return mCreditNameItem;
00092 }
00093
00097 void setCreditURL( const QString & v )
00098 {
00099 if (!isImmutable( QString::fromLatin1 ( "CreditURL" ) ))
00100 mCreditURL = v;
00101 }
00102
00106 QString creditURL() const
00107 {
00108 return mCreditURL;
00109 }
00110
00114 ItemString *creditURLItem()
00115 {
00116 return mCreditURLItem;
00117 }
00118
00122 void setPageTitle( const QString & v )
00123 {
00124 if (!isImmutable( QString::fromLatin1 ( "PageTitle" ) ))
00125 mPageTitle = v;
00126 }
00127
00131 QString pageTitle() const
00132 {
00133 return mPageTitle;
00134 }
00135
00139 ItemString *pageTitleItem()
00140 {
00141 return mPageTitleItem;
00142 }
00143
00147 void setDateStart( const QDateTime & v )
00148 {
00149 if (!isImmutable( QString::fromLatin1 ( "DateStart" ) ))
00150 mDateStart = v;
00151 }
00152
00156 QDateTime dateStart() const
00157 {
00158 return mDateStart;
00159 }
00160
00164 ItemDateTime *dateStartItem()
00165 {
00166 return mDateStartItem;
00167 }
00168
00172 void setDateEnd( const QDateTime & v )
00173 {
00174 if (!isImmutable( QString::fromLatin1 ( "DateEnd" ) ))
00175 mDateEnd = v;
00176 }
00177
00181 QDateTime dateEnd() const
00182 {
00183 return mDateEnd;
00184 }
00185
00189 ItemDateTime *dateEndItem()
00190 {
00191 return mDateEndItem;
00192 }
00193
00197 void setOutputFile( const QString & v )
00198 {
00199 if (!isImmutable( QString::fromLatin1 ( "OutputFile" ) ))
00200 mOutputFile = v;
00201 }
00202
00206 QString outputFile() const
00207 {
00208 return mOutputFile;
00209 }
00210
00214 ItemPath *outputFileItem()
00215 {
00216 return mOutputFileItem;
00217 }
00218
00222 void setStyleSheet( const QString & v )
00223 {
00224 if (!isImmutable( QString::fromLatin1 ( "StyleSheet" ) ))
00225 mStyleSheet = v;
00226 }
00227
00231 QString styleSheet() const
00232 {
00233 return mStyleSheet;
00234 }
00235
00239 ItemString *styleSheetItem()
00240 {
00241 return mStyleSheetItem;
00242 }
00243
00247 void setExcludePrivate( bool v )
00248 {
00249 if (!isImmutable( QString::fromLatin1 ( "ExcludePrivate" ) ))
00250 mExcludePrivate = v;
00251 }
00252
00256 bool excludePrivate() const
00257 {
00258 return mExcludePrivate;
00259 }
00260
00264 ItemBool *excludePrivateItem()
00265 {
00266 return mExcludePrivateItem;
00267 }
00268
00272 void setExcludeConfidential( bool v )
00273 {
00274 if (!isImmutable( QString::fromLatin1 ( "ExcludeConfidential" ) ))
00275 mExcludeConfidential = v;
00276 }
00277
00281 bool excludeConfidential() const
00282 {
00283 return mExcludeConfidential;
00284 }
00285
00289 ItemBool *excludeConfidentialItem()
00290 {
00291 return mExcludeConfidentialItem;
00292 }
00293
00297 void setEventView( bool v )
00298 {
00299 if (!isImmutable( QString::fromLatin1 ( "EventView" ) ))
00300 mEventView = v;
00301 }
00302
00306 bool eventView() const
00307 {
00308 return mEventView;
00309 }
00310
00314 ItemBool *eventViewItem()
00315 {
00316 return mEventViewItem;
00317 }
00318
00322 void setMonthView( bool v )
00323 {
00324 if (!isImmutable( QString::fromLatin1 ( "MonthView" ) ))
00325 mMonthView = v;
00326 }
00327
00331 bool monthView() const
00332 {
00333 return mMonthView;
00334 }
00335
00339 ItemBool *monthViewItem()
00340 {
00341 return mMonthViewItem;
00342 }
00343
00347 void setWeekView( bool v )
00348 {
00349 if (!isImmutable( QString::fromLatin1 ( "WeekView" ) ))
00350 mWeekView = v;
00351 }
00352
00356 bool weekView() const
00357 {
00358 return mWeekView;
00359 }
00360
00364 ItemBool *weekViewItem()
00365 {
00366 return mWeekViewItem;
00367 }
00368
00372 void setEventTitle( const QString & v )
00373 {
00374 if (!isImmutable( QString::fromLatin1 ( "EventTitle" ) ))
00375 mEventTitle = v;
00376 }
00377
00381 QString eventTitle() const
00382 {
00383 return mEventTitle;
00384 }
00385
00389 ItemString *eventTitleItem()
00390 {
00391 return mEventTitleItem;
00392 }
00393
00397 void setEventLocation( bool v )
00398 {
00399 if (!isImmutable( QString::fromLatin1 ( "EventLocation" ) ))
00400 mEventLocation = v;
00401 }
00402
00406 bool eventLocation() const
00407 {
00408 return mEventLocation;
00409 }
00410
00414 ItemBool *eventLocationItem()
00415 {
00416 return mEventLocationItem;
00417 }
00418
00422 void setEventCategories( bool v )
00423 {
00424 if (!isImmutable( QString::fromLatin1 ( "EventCategories" ) ))
00425 mEventCategories = v;
00426 }
00427
00431 bool eventCategories() const
00432 {
00433 return mEventCategories;
00434 }
00435
00439 ItemBool *eventCategoriesItem()
00440 {
00441 return mEventCategoriesItem;
00442 }
00443
00447 void setEventAttendees( bool v )
00448 {
00449 if (!isImmutable( QString::fromLatin1 ( "EventAttendees" ) ))
00450 mEventAttendees = v;
00451 }
00452
00456 bool eventAttendees() const
00457 {
00458 return mEventAttendees;
00459 }
00460
00464 ItemBool *eventAttendeesItem()
00465 {
00466 return mEventAttendeesItem;
00467 }
00468
00472 void setTodoView( bool v )
00473 {
00474 if (!isImmutable( QString::fromLatin1 ( "TodoView" ) ))
00475 mTodoView = v;
00476 }
00477
00481 bool todoView() const
00482 {
00483 return mTodoView;
00484 }
00485
00489 ItemBool *todoViewItem()
00490 {
00491 return mTodoViewItem;
00492 }
00493
00497 void setTodoListTitle( const QString & v )
00498 {
00499 if (!isImmutable( QString::fromLatin1 ( "TodoListTitle" ) ))
00500 mTodoListTitle = v;
00501 }
00502
00506 QString todoListTitle() const
00507 {
00508 return mTodoListTitle;
00509 }
00510
00514 ItemString *todoListTitleItem()
00515 {
00516 return mTodoListTitleItem;
00517 }
00518
00522 void setTaskDueDate( bool v )
00523 {
00524 if (!isImmutable( QString::fromLatin1 ( "TaskDueDate" ) ))
00525 mTaskDueDate = v;
00526 }
00527
00531 bool taskDueDate() const
00532 {
00533 return mTaskDueDate;
00534 }
00535
00539 ItemBool *taskDueDateItem()
00540 {
00541 return mTaskDueDateItem;
00542 }
00543
00547 void setTaskLocation( bool v )
00548 {
00549 if (!isImmutable( QString::fromLatin1 ( "TaskLocation" ) ))
00550 mTaskLocation = v;
00551 }
00552
00556 bool taskLocation() const
00557 {
00558 return mTaskLocation;
00559 }
00560
00564 ItemBool *taskLocationItem()
00565 {
00566 return mTaskLocationItem;
00567 }
00568
00572 void setTaskCategories( bool v )
00573 {
00574 if (!isImmutable( QString::fromLatin1 ( "TaskCategories" ) ))
00575 mTaskCategories = v;
00576 }
00577
00581 bool taskCategories() const
00582 {
00583 return mTaskCategories;
00584 }
00585
00589 ItemBool *taskCategoriesItem()
00590 {
00591 return mTaskCategoriesItem;
00592 }
00593
00597 void setTaskAttendees( bool v )
00598 {
00599 if (!isImmutable( QString::fromLatin1 ( "TaskAttendees" ) ))
00600 mTaskAttendees = v;
00601 }
00602
00606 bool taskAttendees() const
00607 {
00608 return mTaskAttendees;
00609 }
00610
00614 ItemBool *taskAttendeesItem()
00615 {
00616 return mTaskAttendeesItem;
00617 }
00618
00622 void setJournalView( bool v )
00623 {
00624 if (!isImmutable( QString::fromLatin1 ( "JournalView" ) ))
00625 mJournalView = v;
00626 }
00627
00631 bool journalView() const
00632 {
00633 return mJournalView;
00634 }
00635
00639 ItemBool *journalViewItem()
00640 {
00641 return mJournalViewItem;
00642 }
00643
00647 void setJournalTitle( const QString & v )
00648 {
00649 if (!isImmutable( QString::fromLatin1 ( "JournalTitle" ) ))
00650 mJournalTitle = v;
00651 }
00652
00656 QString journalTitle() const
00657 {
00658 return mJournalTitle;
00659 }
00660
00664 ItemString *journalTitleItem()
00665 {
00666 return mJournalTitleItem;
00667 }
00668
00672 void setFreeBusyView( bool v )
00673 {
00674 if (!isImmutable( QString::fromLatin1 ( "FreeBusyView" ) ))
00675 mFreeBusyView = v;
00676 }
00677
00681 bool freeBusyView() const
00682 {
00683 return mFreeBusyView;
00684 }
00685
00689 ItemBool *freeBusyViewItem()
00690 {
00691 return mFreeBusyViewItem;
00692 }
00693
00697 void setFreeBusyTitle( const QString & v )
00698 {
00699 if (!isImmutable( QString::fromLatin1 ( "FreeBusyTitle" ) ))
00700 mFreeBusyTitle = v;
00701 }
00702
00706 QString freeBusyTitle() const
00707 {
00708 return mFreeBusyTitle;
00709 }
00710
00714 ItemString *freeBusyTitleItem()
00715 {
00716 return mFreeBusyTitleItem;
00717 }
00718
00719 protected:
00720 public:
00721 QString mParamapplication;
00722
00723
00724 QString mName;
00725 QString mEMail;
00726 QString mCreditName;
00727 QString mCreditURL;
00728 QString mPageTitle;
00729 QDateTime mDateStart;
00730 QDateTime mDateEnd;
00731 QString mOutputFile;
00732 QString mStyleSheet;
00733 bool mExcludePrivate;
00734 bool mExcludeConfidential;
00735
00736
00737 bool mEventView;
00738 bool mMonthView;
00739 bool mWeekView;
00740 QString mEventTitle;
00741 bool mEventLocation;
00742 bool mEventCategories;
00743 bool mEventAttendees;
00744
00745
00746 bool mTodoView;
00747 QString mTodoListTitle;
00748 bool mTaskDueDate;
00749 bool mTaskLocation;
00750 bool mTaskCategories;
00751 bool mTaskAttendees;
00752
00753
00754 bool mJournalView;
00755 QString mJournalTitle;
00756
00757
00758 bool mFreeBusyView;
00759 QString mFreeBusyTitle;
00760
00761 private:
00762 ItemString *mNameItem;
00763 ItemString *mEMailItem;
00764 ItemString *mCreditNameItem;
00765 ItemString *mCreditURLItem;
00766 ItemString *mPageTitleItem;
00767 ItemDateTime *mDateStartItem;
00768 ItemDateTime *mDateEndItem;
00769 ItemPath *mOutputFileItem;
00770 ItemString *mStyleSheetItem;
00771 ItemBool *mExcludePrivateItem;
00772 ItemBool *mExcludeConfidentialItem;
00773 ItemBool *mEventViewItem;
00774 ItemBool *mMonthViewItem;
00775 ItemBool *mWeekViewItem;
00776 ItemString *mEventTitleItem;
00777 ItemBool *mEventLocationItem;
00778 ItemBool *mEventCategoriesItem;
00779 ItemBool *mEventAttendeesItem;
00780 ItemBool *mTodoViewItem;
00781 ItemString *mTodoListTitleItem;
00782 ItemBool *mTaskDueDateItem;
00783 ItemBool *mTaskLocationItem;
00784 ItemBool *mTaskCategoriesItem;
00785 ItemBool *mTaskAttendeesItem;
00786 ItemBool *mJournalViewItem;
00787 ItemString *mJournalTitleItem;
00788 ItemBool *mFreeBusyViewItem;
00789 ItemString *mFreeBusyTitleItem;
00790 };
00791
00792 }
00793
00794 #endif
00795