// // DataServerClient.h // hifi // // Created by Stephen Birarda on 10/7/13. // Copyright (c) 2013 HighFidelity, Inc. All rights reserved. // #ifndef __hifi__DataServerClient__ #define __hifi__DataServerClient__ #include #include class DataServerClient { public: static void putValueForKey(const char* key, const char* value); static void getValueForKeyAndUUID(const char* key, QUuid& uuid); static void getValueforKeyAndUserString(const char* key, QString& userString); static void getClientValueForKey(const char* key) { getValueForKeyAndUserString(key, _clientUsername); } static void processConfirmFromDataServer(unsigned char* packetData, int numPacketBytes); static void processGetFromDataServer(unsigned char* packetData, int numPacketBytes); static void setClientUsername(QString& clientUsername) { _clientUsername = clientUsername; } static QString& setClientUsername() { return _clientUsername; } private: static QString _clientUsername; static std::vector _unconfirmedPackets; }; #endif /* defined(__hifi__DataServerClient__) */