KCal Library
#include <filestorage.h>
Public Member Functions | |
FileStorage (Calendar *calendar, const QString &fileName=QString(), CalFormat *format=0) | |
virtual | ~FileStorage () |
bool | close () |
QString | fileName () const |
bool | load () |
bool | open () |
bool | save () |
CalFormat * | saveFormat () const |
void | setFileName (const QString &fileName) |
void | setSaveFormat (CalFormat *format) |
Public Member Functions inherited from KCal::CalStorage | |
CalStorage (Calendar *calendar) | |
virtual | ~CalStorage () |
Calendar * | calendar () const |
Detailed Description
This class provides a calendar storage as a local file.
Definition at line 43 of file filestorage.h.
Constructor & Destructor Documentation
|
explicit |
Constructs a new FileStorage object for Calendar calendar
with format format
, and storage to file fileName
.
Private class that helps to provide binary compatibility between releases.
- Parameters
-
calendar is a pointer to a valid Calendar object. fileName is the name of the disk file containing the Calendar data. format is a pointer to a valid CalFormat object that specifies the calendar format to be used. FileStorage takes ownership; i.e., the memory for format
is deleted by this destructor. If no format is specified, then iCalendar format is assumed.
Definition at line 63 of file filestorage.cpp.
|
virtual |
Destructor.
Definition at line 70 of file filestorage.cpp.
Member Function Documentation
|
virtual |
QString FileStorage::fileName | ( | ) | const |
Returns a string containing the name of the calendar file.
- See also
- setFileName().
Definition at line 80 of file filestorage.cpp.
|
virtual |
|
virtual |
|
virtual |
CalFormat * FileStorage::saveFormat | ( | ) | const |
Returns a pointer to the CalFormat object used by this storage.
- See also
- setSaveFormat().
Definition at line 91 of file filestorage.cpp.
void FileStorage::setFileName | ( | const QString & | fileName | ) |
Sets the name of the file that contains the calendar data.
- Parameters
-
fileName is the name of the disk file containing the Calendar data.
- See also
- fileName().
Definition at line 75 of file filestorage.cpp.
void FileStorage::setSaveFormat | ( | CalFormat * | format | ) |
Sets the CalFormat object to use for this storage.
- Parameters
-
format is a pointer to a valid CalFormat object that specifies the calendar format to be used. FileStorage takes ownership.
- See also
- saveFormat().
Definition at line 85 of file filestorage.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:30 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.