Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00031 #ifndef MKCAL_SQLITEFORMAT_H
00032 #define MKCAL_SQLITEFORMAT_H
00033
00034 #include "mkcal_export.h"
00035 #include "extendedstorage.h"
00036 #include "notebook.h"
00037
00038 #include <incidence.h>
00039
00040 #include <sqlite3.h>
00041
00042 namespace mKCal {
00043
00044 class SqliteStorage;
00045
00054 class MKCAL_EXPORT SqliteFormat
00055 {
00056 public:
00060 enum RDateType {
00061 RDate = 1,
00062 XDate,
00063 RDateTime,
00064 XDateTime
00065 };
00066
00070 SqliteFormat( SqliteStorage *storage, sqlite3 *database );
00071
00075 virtual ~SqliteFormat();
00076
00085 bool modifyCalendars( const Notebook::Ptr ¬ebook, DBOperation dbop, sqlite3_stmt *stmt );
00086
00093 Notebook::Ptr selectCalendars( sqlite3_stmt *stmt );
00094
00107 bool modifyComponents( const KCalCore::Incidence::Ptr &incidence, const QString ¬ebook,
00108 DBOperation dbop, sqlite3_stmt *stmt1, sqlite3_stmt *stmt2,
00109 sqlite3_stmt *stmt3, sqlite3_stmt *stmt4, sqlite3_stmt *stmt5,
00110 sqlite3_stmt *stmt6, sqlite3_stmt *stmt7, sqlite3_stmt *stmt8,
00111 sqlite3_stmt *stmt9, sqlite3_stmt *stmt10, sqlite3_stmt *stmt11 );
00112
00124 KCalCore::Incidence::Ptr selectComponents( sqlite3_stmt *stmt1, sqlite3_stmt *stmt2,
00125 sqlite3_stmt *stmt3, sqlite3_stmt *stmt4,
00126 sqlite3_stmt *stmt5, sqlite3_stmt *stmt6,
00127 QString ¬ebook );
00128
00135 KCalCore::Person::List selectContacts( sqlite3_stmt *stmt );
00136
00137 private:
00138
00139 Q_DISABLE_COPY( SqliteFormat )
00140 class MKCAL_HIDE Private;
00141 Private *const d;
00142
00143 };
00144
00145 }
00146
00147 #endif