Changeset 315:e6c8bb244ecd in SMSSender for gateways/Post/src/business/gateway.h


Ignore:
Timestamp:
Feb 5, 2014 7:11:10 PM (5 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
separation-frontend-backend
Message:
  • Separates the frontend from the backend code.
  • At this point the schoolnet gateway is converted only.
  • Removes bc & da prefixes from the filenames.
File:
1 moved

Legend:

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

    r275 r315  
    2121#include <QSet>
    2222
    23 #include <smacros.h>
    24 #include <abstract/abstractgateway.h>
     23#include <business/igateway.h>
     24#include <utils/smacros.h>
    2525
    2626namespace Post {
     
    3333const short   MAX_RECIPIENTS_PER_SMS = 10;
    3434
    35 class BCGateway : public AbstractGateway {
    36     Q_OBJECT
    37     S_SINGLETON(BCGateway)
     35class Gateway : public IGateway {
     36    Q_INTERFACES(IGateway)
    3837
    3938public: /* IGateway */
    40     QString        name() const;
    41     QImage         icon() const;
     39    QString name() const;
     40    QImage icon() const;
    4241
    4342public: /* IGateway */
    44     IAccountSettingsWidget* createAccountSettingsWidget(QWidget* parent) const;
    45     IAccount*               createAccountInstance(IStorage* storage);
     43    QList<int>   validRecipientCountryCodes() const;
     44    QList<QChar> doublePriceChars() const;
     45    QList<QChar> disAllowedChars() const;
    4646
    4747public: /* IGateway */
    48     QList<int>     validRecipientCountryCodes() const;
    49     QList<QChar>   doublePriceChars() const;
    50     QList<QChar>   disAllowedChars() const;
     48    IAccountSettingsWidget* createAccountSettingsWidget(QWidget *parent) const;
     49    IAccount*               createAccountInstance();
     50
     51public: /* IStorable */
     52    ::Persistence::IStorageHelper *createStorageHelper(Persistence::IMainStorage *storage);
    5153};
    5254
Note: See TracChangeset for help on using the changeset viewer.