~ubuntu-branches/ubuntu/natty/kadu/natty

« back to all changes in this revision

Viewing changes to externalmodules/plus_pl_sms/sms_plus_pl_gateway.h

  • Committer: Package Import Robot
  • Author(s): Kiszel Kristóf
  • Date: 2010-07-21 15:24:54 UTC
  • mfrom: (0.6.1) (0.5.1) (1.4.1) (22.1.2 maverick)
  • Revision ID: package-import@ubuntu.com-20100721152454-vttqle18lovfudni
Tags: 0.6.5.4.ds1-3ubuntu2
Remove libqt4-webkit-dev from build-depends and add
libqtwebkit-dev for qtwebkit transition

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SMSMIASTOPLUSAGATEWAY_H
 
2
#define SMSMIASTOPLUSAGATEWAY_H
 
3
 
 
4
#include "../sms/sms.h"
 
5
#include <curl/curl.h>
 
6
#include "sendthread.h"
 
7
#include "QTimer"
 
8
 
 
9
class SmsPlusPlGateway : public SmsGateway
 
10
{
 
11
        Q_OBJECT
 
12
        friend class SendThread;
 
13
        protected:
 
14
                CURL *curl;
 
15
                virtual void httpFinished();
 
16
                virtual void httpRedirected(QString);
 
17
                void emitFinished(bool success);
 
18
                SendThread sendThread;
 
19
                QTimer timer;
 
20
 
 
21
        public:
 
22
                SmsPlusPlGateway(QObject* parent, const char *name = 0);
 
23
                ~SmsPlusPlGateway();
 
24
                static SmsGateway* isValidPlusPl(const QString& number, QObject* parent);
 
25
                static bool isNumberCorrect(const QString& number);
 
26
        signals:
 
27
                void displayInfosSignal();
 
28
        protected slots:
 
29
                void checkIfFinished();
 
30
                void displayInfos();
 
31
        public slots:
 
32
                virtual void send(const QString& number,const QString& message, const QString& contact, const QString& signature);
 
33
};
 
34
 
 
35
#endif