source: SMSSender/lib/libdatatypes/src/interfaces/inumber.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: 928 bytes
Line 
1/*
2 * inumber.h
3 *
4 *  Created on: May 19, 2009
5 *      Author: saemy
6 */
7
8#ifndef INUMBER_H_
9#define INUMBER_H_
10
11#include <QObject>
12#include <QString>
13
14#include "istreamable.h"
15
16class INumber: public IStreamable{
17    Q_INTERFACES(IStreamable)
18
19public:
20    static const QString IsoFormat;
21
22
23    virtual int     countryCode() const =0;
24    virtual QString areaCode() const =0;
25    virtual QString userNumber() const =0;
26
27    virtual void    setNumber(const QString& numberStr) =0;
28
29    virtual void    clear() =0;
30    virtual bool    isEmpty() const =0;
31    virtual bool    isValid() const =0;
32    virtual QString error() const =0;
33
34    virtual QString toString() const =0;
35    virtual QString toString(const QString& format = INumber::IsoFormat) const =0;
36    virtual void    fromString(const QString& string) =0;
37};
38Q_DECLARE_INTERFACE(INumber,
39                     "ch.gorrion.smssender.INumber/1.0")
40
41#endif /* INUMBER_H_ */
Note: See TracBrowser for help on using the repository browser.