source: SMSSender/gateways/CoopMobile/business/gateway.cpp @ 461:6282b93fcfca

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

Implements the contact importer for the CoopMobile? gateway.

File size: 1.7 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_BASE = "https://coop.nth.ch";
25const QString Gateway::URL_ADDRESS_BOOK =
26        Gateway::URL_BASE + "/contacts/index/lang/de";
27const QString Gateway::URL_LOGIN =
28        Gateway::URL_BASE + "/index/login/lang/de";
29const QString Gateway::URL_SEND_SMS =
30        Gateway::URL_BASE + "/smsbox/smsedit/lang/de";
31const short Gateway::MAX_RECIPIENTS_PER_SMS = 10;
32const short Gateway::NUM_SHORT_SMS_PER_LONG_SMS = 5;
33
34
35QString Gateway::name() const {
36    return "Coop Mobile";
37}
38
39QList<int> Gateway::validRecipientCountryCodes() const {
40    QList<int> result;
41    result.append(41); // CH
42    return result;
43}
44
45
46IAccount *Gateway::createAccountInstance() {
47    return new Account(this);
48}
49
50::Persistence::IStorageHelper *Gateway::createStorageHelper(
51        Persistence::IMainStorage *storage) {
52    Q_UNUSED(storage);
53    return NULL;
54}
55
56} // namespace CoopMobile
Note: See TracBrowser for help on using the repository browser.