source: SMSSender/lib/libdatatypes/src/interfaces/ilibrary.h @ 71:415b45c71663

3.0
Last change on this file since 71:415b45c71663 was 71:415b45c71663, checked in by Sämy Zehnder <saemy.zehnder@…>, 12 years ago
  • Reorganized all the libraries. libinterfaces and libgateways are removed now and libdatatypes contains now all these files.
File size: 883 bytes
Line 
1/*
2 * ilibrary.h
3 *
4 *  Created on: Jul 12, 2009
5 *      Author: saemy
6 */
7
8#ifndef ILIBRARY_H_
9#define ILIBRARY_H_
10
11#include <QObject>
12#include <QLocale>
13#include <QTranslator>
14
15#include "iinterface.h"
16#include "igateway.h"
17
18// The actual major version of the library. Increase this, if something in the interfaces has changed.
19const int LIBRARY_VERSION = 2;
20
21
22class ILibrary: public IInterface {
23    Q_INTERFACES(IInterface)
24
25public:
26    int                  version() const { return LIBRARY_VERSION; } // To prevent loading of too old/new libraries
27
28    virtual QTranslator* getTranslator(const QLocale& locale) =0;
29    virtual IGateway*    getGateway() const =0;
30};
31
32Q_DECLARE_INTERFACE(ILibrary,
33                     "ch.gorrion.smssender.ILibrary/1.0")
34
35#ifdef Q_WS_WIN
36#define LIBRARY_EXPORT __declspec(dllexport)
37#else
38#define LIBRARY_EXPORT
39#endif
40
41#endif /* ILIBRARY_H_ */
Note: See TracBrowser for help on using the repository browser.