diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-12-03 03:05:47 +0100 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-12-03 03:05:47 +0100 |
commit | 47ada94baa424e56d2ded256fddc91e6aa4d3090 (patch) | |
tree | 46fd1da4c5fe29694aea0d05b70fe7db2ba7fa88 /gatoaddress.h | |
download | libgato-47ada94baa424e56d2ded256fddc91e6aa4d3090.tar.gz libgato-47ada94baa424e56d2ded256fddc91e6aa4d3090.zip |
initial import
Diffstat (limited to 'gatoaddress.h')
-rw-r--r-- | gatoaddress.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gatoaddress.h b/gatoaddress.h new file mode 100644 index 0000000..f30ec43 --- /dev/null +++ b/gatoaddress.h @@ -0,0 +1,32 @@ +#ifndef GATOADDRESS_H +#define GATOADDRESS_H + +#include <QtCore/QSharedDataPointer> +#include "libgato_global.h" + +class GatoAddressPrivate; + +class LIBGATO_EXPORT GatoAddress +{ +public: + GatoAddress(); + explicit GatoAddress(quint8 addr[]); + explicit GatoAddress(quint64 addr); + explicit GatoAddress(const QString &addr); + GatoAddress(const GatoAddress& o); + ~GatoAddress(); + + GatoAddress& operator=(const GatoAddress& o); + + void toUInt8Array(quint8 addr[]) const; + quint64 toUInt64() const; + QString toString() const; + +private: + QSharedDataPointer<GatoAddressPrivate> d; +}; + +LIBGATO_EXPORT bool operator==(const GatoAddress &a, const GatoAddress &b); +LIBGATO_EXPORT uint qHash(const GatoAddress &a); + +#endif // GATOADDRESS_H |