source: SMSSender/gateways/CoopMobile/business/gateway.cpp @ 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#include "gateway.h"
19
20#include "gateways/CoopMobile/business/account.h"
21
22namespace CoopMobile {
23
24const QString Gateway::URL_LOGIN = "https://coop.nth.ch/index/login/lang/de";
25const QString Gateway::URL_SEND_SMS = "https://coop.nth.ch/smsbox/smsedit/lang/de";
26const short Gateway::MAX_RECIPIENTS_PER_SMS = 10;
27const short Gateway::NUM_SHORT_SMS_PER_LONG_SMS = 5;
28
29
30QString Gateway::name() const {
31    return "Coop Mobile";
32}
33
34QList<int> Gateway::validRecipientCountryCodes() const {
35    QList<int> result;
36    result.append(41); // CH
37    return result;
38}
39
40
41IAccount *Gateway::createAccountInstance() {
42    return new Account(this);
43}
44
45::Persistence::IStorageHelper *Gateway::createStorageHelper(
46        Persistence::IMainStorage *storage) {
47    Q_UNUSED(storage);
48    return NULL;
49}
50
51} // namespace CoopMobile
Note: See TracBrowser for help on using the repository browser.