blob: f30ec43350ddcc11b48c3089f698c5e1ef63fa09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|