Changeset View
Changeset View
Standalone View
Standalone View
src/filestorage.h
Show All 26 Lines | |||||
27 | */ | 27 | */ | ||
28 | 28 | | |||
29 | #ifndef KCALCORE_FILESTORAGE_H | 29 | #ifndef KCALCORE_FILESTORAGE_H | ||
30 | #define KCALCORE_FILESTORAGE_H | 30 | #define KCALCORE_FILESTORAGE_H | ||
31 | 31 | | |||
32 | #include "kcalcore_export.h" | 32 | #include "kcalcore_export.h" | ||
33 | #include "calstorage.h" | 33 | #include "calstorage.h" | ||
34 | 34 | | |||
35 | namespace KCalCore | 35 | namespace KCalendarCore | ||
36 | { | 36 | { | ||
37 | 37 | | |||
38 | class CalFormat; | 38 | class CalFormat; | ||
39 | class Calendar; | 39 | class Calendar; | ||
40 | 40 | | |||
41 | /** | 41 | /** | ||
42 | @brief | 42 | @brief | ||
43 | This class provides a calendar storage as a local file. | 43 | This class provides a calendar storage as a local file. | ||
Show All 16 Lines | 55 | /** | |||
60 | @param fileName is the name of the disk file containing the calendar data. | 60 | @param fileName is the name of the disk file containing the calendar data. | ||
61 | @param format is a pointer to a valid CalFormat object that specifies | 61 | @param format is a pointer to a valid CalFormat object that specifies | ||
62 | the calendar format to be used. FileStorage takes ownership; i.e., the | 62 | the calendar format to be used. FileStorage takes ownership; i.e., the | ||
63 | memory for @p format is deleted by this destructor. If no format is | 63 | memory for @p format is deleted by this destructor. If no format is | ||
64 | specified, then iCalendar format is assumed. | 64 | specified, then iCalendar format is assumed. | ||
65 | */ | 65 | */ | ||
66 | explicit FileStorage(const Calendar::Ptr &calendar, | 66 | explicit FileStorage(const Calendar::Ptr &calendar, | ||
67 | const QString &fileName = QString(), | 67 | const QString &fileName = QString(), | ||
68 | KCalCore::CalFormat *format = nullptr); | 68 | KCalendarCore::CalFormat *format = nullptr); | ||
69 | 69 | | |||
70 | /** | 70 | /** | ||
71 | Destructor. | 71 | Destructor. | ||
72 | */ | 72 | */ | ||
73 | ~FileStorage() override; | 73 | ~FileStorage() override; | ||
74 | 74 | | |||
75 | /** | 75 | /** | ||
76 | Sets the name of the file that contains the calendar data. | 76 | Sets the name of the file that contains the calendar data. | ||
Show All 12 Lines | |||||
89 | 89 | | |||
90 | /** | 90 | /** | ||
91 | Sets the CalFormat object to use for this storage. | 91 | Sets the CalFormat object to use for this storage. | ||
92 | 92 | | |||
93 | @param format is a pointer to a valid CalFormat object that specifies | 93 | @param format is a pointer to a valid CalFormat object that specifies | ||
94 | the calendar format to be used. FileStorage takes ownership. | 94 | the calendar format to be used. FileStorage takes ownership. | ||
95 | @see saveFormat(). | 95 | @see saveFormat(). | ||
96 | */ | 96 | */ | ||
97 | void setSaveFormat(KCalCore::CalFormat *format); | 97 | void setSaveFormat(KCalendarCore::CalFormat *format); | ||
98 | 98 | | |||
99 | /** | 99 | /** | ||
100 | Returns the CalFormat object used by this storage. | 100 | Returns the CalFormat object used by this storage. | ||
101 | @return A pointer to the CalFormat object used by this storage. | 101 | @return A pointer to the CalFormat object used by this storage. | ||
102 | @see setSaveFormat(). | 102 | @see setSaveFormat(). | ||
103 | */ | 103 | */ | ||
104 | CalFormat *saveFormat() const; | 104 | CalFormat *saveFormat() const; | ||
105 | 105 | | |||
Show All 31 Lines |