~ubuntu-branches/ubuntu/oneiric/kdeplasma-addons/oneiric

« back to all changes in this revision

Viewing changes to dataengines/pastebin/backends/server.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-11-26 13:35:18 UTC
  • mto: (0.4.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: james.westby@ubuntu.com-20101126133518-remqkgqjafk2a4jc
Tags: upstream-4.5.80
ImportĀ upstreamĀ versionĀ 4.5.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2007 by Thomas Georgiou <TAGeorgiou@gmail.com>          *
3
 
 *                         Artur Duque de Souza <morpheuz@gmail.com>       *
4
 
 *                                                                         *
5
 
 *   This program is free software; you can redistribute it and/or modify  *
6
 
 *   it under the terms of the GNU General Public License as published by  *
7
 
 *   the Free Software Foundation; either version 2 of the License, or     *
8
 
 *   (at your option) any later version.                                   *
9
 
 *                                                                         *
10
 
 *   This program is distributed in the hope that it will be useful,       *
11
 
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13
 
 *   GNU General Public License for more details.                          *
14
 
 *                                                                         *
15
 
 *   You should have received a copy of the GNU General Public License     *
16
 
 *   along with this program; if not, write to the                         *
17
 
 *   Free Software Foundation, Inc.,                                       *
18
 
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .        *
19
 
 ***************************************************************************/
20
 
 
21
 
#ifndef PASTEBIN_SERVER_H
22
 
#define PASTEBIN_SERVER_H
23
 
 
24
 
#include <QObject>
25
 
 
26
 
class PastebinServer : public QObject
27
 
{
28
 
    Q_OBJECT
29
 
 
30
 
public:
31
 
    virtual ~PastebinServer();
32
 
    virtual void post(const QString& content) = 0;
33
 
 
34
 
signals:
35
 
    void postFinished(const QString &data);
36
 
    void postError();
37
 
    void postError(const QString &error);
38
 
 
39
 
protected:
40
 
    // abstract class
41
 
    PastebinServer();
42
 
    QString m_server;
43
 
};
44
 
 
45
 
#endif