Statistics
| Branch: | Tag: | Revision:

root / modules / gadu_protocol / server / token-fetcher.h @ f38188d2

History | View | Annotate | Download (1.3 kB)

1
/*
2
 * %kadu copyright begin%
3
 * Copyright 2009, 2010 RafaƂ Malinowski (rafal.przemyslaw.malinowski@gmail.com)
4
 * %kadu copyright end%
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) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18
 */
19
20
#ifndef TOKEN_FETCHER
21
#define TOKEN_FETCHER
22
23
#include <QtCore/QObject>
24
#include <QtGui/QPixmap>
25
26
struct gg_http;
27
28
class TokenFetcher : public QObject
29
{
30
        Q_OBJECT
31
32
        gg_http *H;
33
        bool AutoDelete;
34
35
private slots:
36
        void tokenFetchedSlot(const QString &tokenId, QPixmap tokenPixmap);
37
38
public:
39
        explicit TokenFetcher(bool autoDelete, QObject *parent = 0);
40
        virtual ~TokenFetcher();
41
42
        void fetchToken();
43
44
signals:
45
        void tokenFetched(const QString &tokenId, QPixmap tokenPixmap);
46
47
};
48
49
#endif // TOKEN_FETCHER