source: SMSSender/gateways/CoopMobile/business/gateway.h @ 460:8503f91a8af9

new-gtwy-coopmobile
Last change on this file since 460:8503f91a8af9 was 460:8503f91a8af9, checked in by Sämy Zehnder <saemy.zehnder@…>, 4 years ago

Logging in and sending messages via the CoopMobile? gateway is now possible.

File size: 1.6 KB
Line 
1/*
2  Coop Mobile gateway plugin - The smssender plugin for the Coop Mobile platform.
3  Copyright (C) 2014-2015, gorrión. See http://smssender.gorrion.ch
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 3 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, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef COOPMOBILE_GATEWAY_H
19#define COOPMOBILE_GATEWAY_H
20
21#include <QSet>
22
23#include "common/business/igateway.h"
24
25#ifdef FRONTEND_GUI
26class QIcon;
27#endif
28
29namespace CoopMobile {
30
31class Gateway : public IGateway {
32    Q_INTERFACES(IGateway)
33
34public: /* IGateway */
35    static const QString URL_LOGIN;
36    static const QString URL_SEND_SMS;
37    static const short MAX_RECIPIENTS_PER_SMS;
38    static const short NUM_SHORT_SMS_PER_LONG_SMS;
39
40    QString name() const;
41
42    QList<int> validRecipientCountryCodes() const;
43    IAccount *createAccountInstance();
44
45#ifdef FRONTEND_GUI
46    QIcon icon() const;
47    IAccountSettingsWidget *createAccountSettingsWidget(QWidget *parent) const;
48#endif
49
50public: /* IStorable */
51    ::Persistence::IStorageHelper *createStorageHelper(
52            Persistence::IMainStorage *storage);
53};
54
55}
56
57#endif /* POSTATEWAY_H */
Note: See TracBrowser for help on using the repository browser.