2
This file is part of Choqok, the KDE micro-blogging client
4
Copyright (C) 2008-2009 Mehrdad Momeny <mehrdad.momeny@gmail.com>
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License as
8
published by the Free Software Foundation; either version 2 of
9
the License or (at your option) version 3 or any later version
10
accepted by the membership of KDE e.V. (or its successor approved
11
by the membership of KDE e.V.), which shall act as a proxy
12
defined in Section 14 of version 3 of the license.
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, see http://www.gnu.org/licenses/
26
//#include "account.h"
28
Search::Search( Account* account, const QString searchUrl, QObject *parent )
32
mSearchUrl = searchUrl;
34
* TODO Support multiple pages on search results! instead of just first 20 latest results!
43
QMap<int, QPair<QString, bool> > Search::getSearchTypes()
48
KUrl Search::buildUrl( QString query, int option, qulonglong sinceStatusId, qulonglong count, qulonglong page )
52
Q_UNUSED(sinceStatusId);
58
void Search::requestSearchResults( QString query, int option, qulonglong sinceStatusId, qulonglong count, qulonglong page )
62
Q_UNUSED(sinceStatusId);
67
void Search::searchResultsReturned( KJob* job )
72
void Search::singleStatusReturned( KJob* job )