equal
deleted
inserted
replaced
119 class BOOKMARKSCONTENTDLL_EXPORT BrowserContent:public QObject { |
119 class BOOKMARKSCONTENTDLL_EXPORT BrowserContent:public QObject { |
120 Q_OBJECT |
120 Q_OBJECT |
121 BOOKMARKSCLIENT_PRIVATE(BrowserContent) |
121 BOOKMARKSCLIENT_PRIVATE(BrowserContent) |
122 public: |
122 public: |
123 |
123 |
124 BrowserContent(QString aClientName); |
124 BrowserContent(QString aClientName); //used for test purposes only |
|
125 BrowserContent(QString aClientName, QString databaseName); |
125 ~BrowserContent(); |
126 ~BrowserContent(); |
126 int addBookmark(BookmarkLeaf* BookmarkContent); |
|
127 int deleteBookmark(QString title); |
|
128 QList<BookmarkLeaf*> fetchAllBookmarks(); |
127 QList<BookmarkLeaf*> fetchAllBookmarks(); |
129 QList<BookmarkLeaf*> suggestBookMarks(QString atitle); |
128 QList<BookmarkLeaf*> suggestBookMarks(QString atitle); |
130 int reorderBokmarks(QString title,int new_index); |
|
131 int modifyBookmark(QString aOrgTitle, QString aNewTitle, QString aNewUrl); |
|
132 QObjectList suggestContent(QString atitle); |
129 QObjectList suggestContent(QString atitle); |
133 |
130 |
134 int addHistory(HistoryLeaf* HistoryContent); |
131 int addHistory(HistoryLeaf* HistoryContent); |
135 QList<HistoryLeaf*> fetchHistory(); |
132 QList<HistoryLeaf*> fetchHistory(); |
136 QList<HistoryLeaf*> suggestHistory(QString atitle); |
133 QList<HistoryLeaf*> suggestHistory(QString atitle); |
140 void fetchSerializedHistory(QVector<QString> &folderVector,QMap<QString,QString> &mymap); |
137 void fetchSerializedHistory(QVector<QString> &folderVector,QMap<QString,QString> &mymap); |
141 void fetchAllBookmarkTitles(QVector<QString> &title); |
138 void fetchAllBookmarkTitles(QVector<QString> &title); |
142 QMap<QString, QString> findSimilarHistoryItems(QString atitle); |
139 QMap<QString, QString> findSimilarHistoryItems(QString atitle); |
143 |
140 |
144 private: |
141 private: |
145 int createDatabase(); |
142 int createDatabase(QString location); |
146 QString filterUrl(QString atitle); |
143 QString filterUrl(QString atitle); |
147 QString findFolderForDate( QDate& nodeDate); |
144 QString findFolderForDate( QDate& nodeDate); |
148 bool dateInThisMonth(QDate &date); |
145 bool dateInThisMonth(QDate &date); |
149 |
146 |
150 private: |
147 private: |