~ubuntu-branches/ubuntu/karmic/choqok/karmic

« back to all changes in this revision

Viewing changes to src/search.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi, Alessandro Ghersi, Christian Mangold
  • Date: 2009-08-11 22:29:59 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090811222959-7tnr98ptcnyx3pjg
Tags: 0.6.6-0ubuntu1
[Alessandro Ghersi]
* New upstream release
  - Bump Standards-Version to 3.8.2
  - Long description formatted to fit in 80 characters

[Christian Mangold]
* Improve long description
* Update Maintainer, package is in main now
* Add a watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    This file is part of Choqok, the KDE micro-blogging client
3
 
 
4
 
    Copyright (C) 2008-2009 Mehrdad Momeny <mehrdad.momeny@gmail.com>
5
 
 
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.
13
 
 
14
 
 
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.
19
 
 
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/
22
 
 
23
 
*/
24
 
 
25
 
#include "search.h"
26
 
//#include "account.h"
27
 
 
28
 
Search::Search( Account* account, const QString searchUrl, QObject *parent )
29
 
    : QObject( parent )
30
 
{
31
 
    mAccount = account;
32
 
    mSearchUrl = searchUrl;
33
 
    /**
34
 
     * TODO Support multiple pages on search results! instead of just first 20 latest results!
35
 
     */
36
 
}
37
 
 
38
 
Search::~Search()
39
 
{
40
 
    mSinceStatusId = 0;
41
 
}
42
 
 
43
 
QMap<int, QPair<QString, bool> > Search::getSearchTypes()
44
 
{
45
 
    return mSearchTypes;
46
 
}
47
 
 
48
 
KUrl Search::buildUrl( QString query, int option, qulonglong sinceStatusId, qulonglong count, qulonglong page )
49
 
{
50
 
    Q_UNUSED(query);
51
 
    Q_UNUSED(option);
52
 
    Q_UNUSED(sinceStatusId);
53
 
    Q_UNUSED(count);
54
 
    Q_UNUSED(page);
55
 
    return KUrl();
56
 
}
57
 
 
58
 
void Search::requestSearchResults( QString query, int option, qulonglong sinceStatusId, qulonglong count, qulonglong page )
59
 
{
60
 
    Q_UNUSED(query);
61
 
    Q_UNUSED(option);
62
 
    Q_UNUSED(sinceStatusId);
63
 
    Q_UNUSED(count);
64
 
    Q_UNUSED(page);
65
 
}
66
 
 
67
 
void Search::searchResultsReturned( KJob* job )
68
 
{
69
 
    Q_UNUSED(job);
70
 
}
71
 
 
72
 
void Search::singleStatusReturned( KJob* job )
73
 
{
74
 
    Q_UNUSED(job);
75
 
}