Changeset 376:0d8179eea17f in SMSSender for gateways/Post/business/gateway.h


Ignore:
Timestamp:
Apr 14, 2014 1:28:38 PM (6 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
separation-frontend-backend
Message:
  • Separates backend and frontend code in the Post gateway.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • gateways/Post/business/gateway.h

    r315 r376  
    11/*
    22  Swiss Post gateway plugin - The smssender plugin for the Swiss Post platform.
    3   Copyright (C) 2011-2012, gorrión. See http://smssender.gorrion.ch
     3  Copyright (C) 2011-2014, gorrión. See http://smssender.gorrion.ch
    44
    55  This program is free software: you can redistribute it and/or modify
     
    1616  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717*/
    18 #ifndef POST_BCGATEWAY_H_
    19 #define POST_BCGATEWAY_H_
     18#ifndef POST_GATEWAY_H
     19#define POST_GATEWAY_H
    2020
    2121#include <QSet>
    2222
    23 #include <business/igateway.h>
    24 #include <utils/smacros.h>
     23#include "common/business/igateway.h"
     24
     25#ifdef FRONTEND_GUI
     26class QIcon;
     27#endif
    2528
    2629namespace Post {
     
    3841public: /* IGateway */
    3942    QString name() const;
    40     QImage icon() const;
     43
     44#ifdef FRONTEND_GUI
     45    QIcon icon() const;
     46    IAccountSettingsWidget *createAccountSettingsWidget(QWidget *parent) const;
     47#endif
    4148
    4249public: /* IGateway */
    43     QList<int>   validRecipientCountryCodes() const;
     50    QList<int> validRecipientCountryCodes() const;
    4451    QList<QChar> doublePriceChars() const;
    4552    QList<QChar> disAllowedChars() const;
    4653
    4754public: /* IGateway */
    48     IAccountSettingsWidget* createAccountSettingsWidget(QWidget *parent) const;
    49     IAccount*               createAccountInstance();
     55    IAccount *createAccountInstance();
    5056
    5157public: /* IStorable */
    52     ::Persistence::IStorageHelper *createStorageHelper(Persistence::IMainStorage *storage);
     58    ::Persistence::IStorageHelper *createStorageHelper(
     59            Persistence::IMainStorage *storage);
    5360};
    5461
    5562}
    5663
    57 #endif /* POST_BCGATEWAY_H_ */
     64#endif /* POSTATEWAY_H */
Note: See TracChangeset for help on using the changeset viewer.