Sqlite format implementation.
More...
#include <sqliteformat.h>
List of all members.
Classes |
class | Private |
Public Types |
enum | RDateType { RDate = 1,
XDate,
RDateTime,
XDateTime
} |
| The different types of rdates.
More...
|
Public Member Functions |
| SqliteFormat (SqliteStorage *storage, sqlite3 *database) |
| Constructor a new Sqlite Format object.
|
virtual | ~SqliteFormat () |
| Destructor.
|
bool | modifyCalendars (const Notebook::Ptr ¬ebook, DBOperation dbop, sqlite3_stmt *stmt) |
| Update notebook data in Calendars table.
|
Notebook::Ptr | selectCalendars (sqlite3_stmt *stmt) |
| Select notebooks from Calendars table.
|
bool | modifyComponents (const KCalCore::Incidence::Ptr &incidence, const QString ¬ebook, DBOperation dbop, sqlite3_stmt *stmt1, sqlite3_stmt *stmt2, sqlite3_stmt *stmt3, sqlite3_stmt *stmt4, sqlite3_stmt *stmt5, sqlite3_stmt *stmt6, sqlite3_stmt *stmt7, sqlite3_stmt *stmt8, sqlite3_stmt *stmt9, sqlite3_stmt *stmt10, sqlite3_stmt *stmt11) |
| Update incidence data in Components table.
|
KCalCore::Incidence::Ptr | selectComponents (sqlite3_stmt *stmt1, sqlite3_stmt *stmt2, sqlite3_stmt *stmt3, sqlite3_stmt *stmt4, sqlite3_stmt *stmt5, sqlite3_stmt *stmt6, QString ¬ebook) |
| Select incidences from Components table.
|
KCalCore::Person::List | selectContacts (sqlite3_stmt *stmt) |
| Select contacts and order them by appearances.
|
Detailed Description
Sqlite format implementation.
This class implements the Sqlite format. It provides methods for loading/saving/converting Sqlite format data into the internal representation as Calendar and Incidences.
Member Enumeration Documentation
The different types of rdates.
- Enumerator:
RDate |
|
XDate |
|
RDateTime |
|
XDateTime |
|
Constructor & Destructor Documentation
SqliteFormat::SqliteFormat |
( |
SqliteStorage * |
storage, |
|
|
sqlite3 * |
database | |
|
) |
| | |
Constructor a new Sqlite Format object.
SqliteFormat::~SqliteFormat |
( |
|
) |
[virtual] |
Member Function Documentation
Update notebook data in Calendars table.
- Parameters:
-
| notebook | notebook to update |
| dbop | database operation |
| stmt | prepared sqlite statement for components table |
- Returns:
- true if the operation was successful; false otherwise.
bool mKCal::SqliteFormat::modifyComponents |
( |
const KCalCore::Incidence::Ptr & |
incidence, |
|
|
const QString & |
notebook, |
|
|
DBOperation |
dbop, |
|
|
sqlite3_stmt * |
stmt1, |
|
|
sqlite3_stmt * |
stmt2, |
|
|
sqlite3_stmt * |
stmt3, |
|
|
sqlite3_stmt * |
stmt4, |
|
|
sqlite3_stmt * |
stmt5, |
|
|
sqlite3_stmt * |
stmt6, |
|
|
sqlite3_stmt * |
stmt7, |
|
|
sqlite3_stmt * |
stmt8, |
|
|
sqlite3_stmt * |
stmt9, |
|
|
sqlite3_stmt * |
stmt10, |
|
|
sqlite3_stmt * |
stmt11 | |
|
) |
| | |
Update incidence data in Components table.
- Parameters:
-
| incidence | incidence to update |
| notebook | notebook of incidence |
| dbop | database operation |
| stmt1 | prepared sqlite statement for components table |
| stmt2 | prepared sqlite statement for customproperties table |
| stmt3 | prepared sqlite statement for attendee table |
| stmt4 | prepared sqlite statement for alarm table |
- Returns:
- true if the operation was successful; false otherwise.
Notebook::Ptr SqliteFormat::selectCalendars |
( |
sqlite3_stmt * |
stmt |
) |
|
Select notebooks from Calendars table.
- Parameters:
-
| stmt | prepared sqlite statement for calendars table |
- Returns:
- the queried notebook.
Incidence::Ptr SqliteFormat::selectComponents |
( |
sqlite3_stmt * |
stmt1, |
|
|
sqlite3_stmt * |
stmt2, |
|
|
sqlite3_stmt * |
stmt3, |
|
|
sqlite3_stmt * |
stmt4, |
|
|
sqlite3_stmt * |
stmt5, |
|
|
sqlite3_stmt * |
stmt6, |
|
|
QString & |
notebook | |
|
) |
| | |
Select incidences from Components table.
- Parameters:
-
| stmt1 | prepared sqlite statement for components table |
| stmt2 | prepared sqlite statement for customproperties table |
| stmt3 | prepared sqlite statement for attendee table |
| stmt4 | prepared sqlite statement for alarm table |
| stmt5 | prepared sqlite statement for recursive table |
| notebook | notebook of incidence |
- Returns:
- the queried incidence.
KCalCore::Person::List mKCal::SqliteFormat::selectContacts |
( |
sqlite3_stmt * |
stmt |
) |
|
Select contacts and order them by appearances.
- Parameters:
-
| stmt | prepared sqlite statement for Attendees table |
- Returns:
- ordered list of contacts.
The documentation for this class was generated from the following files: