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/
25
#ifndef TWITTERSEARCH_H
26
#define TWITTERSEARCH_H
31
#include "datacontainers.h"
34
Twitter.com search API implementation.
36
@author Stephen Henderson <hendersonsk@gmail.com>
38
class TwitterSearch : public Search
42
enum SearchType { CustomSearch = 0, ToUser, FromUser, ReferenceUser, ReferenceHashtag };
44
explicit TwitterSearch( Account* account, const QString searchUrl = QString(), QObject *parent=0 );
45
virtual ~TwitterSearch();
48
virtual KUrl buildUrl( QString query, int option, uint sinceStatusId = 0, uint count = 0, uint page = 1 );
49
QList<Status>* parseAtom( const QByteArray &buffer );
52
virtual void requestSearchResults( QString query,
54
uint sinceStatusId = 0,
59
virtual void searchResultsReturned( KJob *job );