119 BOOKMARKSCLIENT_PRIVATE(BrowserContent) |
119 BOOKMARKSCLIENT_PRIVATE(BrowserContent) |
120 public: |
120 public: |
121 |
121 |
122 BrowserContent(QString aClientName); |
122 BrowserContent(QString aClientName); |
123 ~BrowserContent(); |
123 ~BrowserContent(); |
124 int AddBookmark(BookmarkLeaf* BookmarkContent); |
124 int addBookmark(BookmarkLeaf* BookmarkContent); |
125 int DeleteBookmark(QString title); |
125 int deleteBookmark(QString title); |
126 QList<BookmarkLeaf*> FetchAllBookmarks(); |
126 QList<BookmarkLeaf*> fetchAllBookmarks(); |
127 QList<BookmarkLeaf*> suggestBookMarks(QString atitle); |
127 QList<BookmarkLeaf*> suggestBookMarks(QString atitle); |
128 int reorderBokmarks(QString title,int new_index); |
128 int reorderBokmarks(QString title,int new_index); |
129 int modifyBookmark(QString aOrgTitle, QString aNewTitle, QString aNewUrl); |
129 int modifyBookmark(QString aOrgTitle, QString aNewTitle, QString aNewUrl); |
130 QObjectList suggestContent(QString atitle); |
130 QObjectList suggestContent(QString atitle); |
131 |
131 |
132 int AddHistory(HistoryLeaf* HistoryContent); |
132 int addHistory(HistoryLeaf* HistoryContent); |
133 QList<HistoryLeaf*> FetchHistory(); |
133 QList<HistoryLeaf*> fetchHistory(); |
134 QList<HistoryLeaf*> suggestHistory(QString atitle); |
134 QList<HistoryLeaf*> suggestHistory(QString atitle); |
135 int clearHistory(); |
135 int clearHistory(); |
136 int clearBookmarks(); |
136 int clearBookmarks(); |
137 QString FetchSerializedBookmarks(); |
137 QString fetchSerializedBookmarks(); |
138 void FetchSerializedHistory(QVector<QString> &folderVector,QMap<QString,QString> &mymap); |
138 void fetchSerializedHistory(QVector<QString> &folderVector,QMap<QString,QString> &mymap); |
139 void FetchAllBookmarkTitles(QVector<QString> &title); |
139 void fetchAllBookmarkTitles(QVector<QString> &title); |
140 |
140 |
141 private: |
141 private: |
142 int createDatabase(); |
142 int createDatabase(); |
143 QString filterUrl(QString atitle); |
143 QString filterUrl(QString atitle); |
144 QString findFolderForDate( QDate& nodeDate); |
144 QString findFolderForDate( QDate& nodeDate); |