-
Notifications
You must be signed in to change notification settings - Fork 0
/
exchangespecification.h
64 lines (58 loc) · 2 KB
/
exchangespecification.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef EXCHANGESPECIFICATION_H
#define EXCHANGESPECIFICATION_H
#include "types.h"
#include <QMap>
#include <QVariant>
#include <typeinfo>
class ExchangeSpecification
{
public:
ExchangeSpecification(String exchangeClassName);
/*template <typename T> ExchangeSpecification(const T& exchangeClass) {
exchangeClassName_ = typeid(exchangeClass).name();
}*/
String getExchangeClassName() const;
QVariant getParameter(String key) const;
String getHost() const;
void setHost(const String& host);
String getApiKey() const;
void setApiKey(const String& apiKey);
unsigned short getPort() const;
void setPort(unsigned short port);
String getSecretKey() const;
void setSecretKey(const String& secretKey);
String getSslUri() const;
void setSslUri(const String& uri);
String getPlainTextUri() const;
void setPlainTextUri(const String& uri);
String getPlainTextUriStreaming() const;
void setPlainTextUriStreaming(const String& uri);
String getSslUriStreaming() const;
void setSslUriStreaming(const String& uri);
QMap<String, QVariant> getExchangeSpecificParameters() const;
void setExchangeSpecificParameters(const QMap<String, QVariant>& exchangeSpecificParameters);
String getPassword() const;
void setPassword(const String& password);
String getUserName() const;
void setUserName(const String& username);
String getExchangeName() const;
void setExchangeName(const String& exchangeName);
String getExchangeDescription() const;
void setExchangeDescription(const String& exchangeDescription);
private:
String exchangeName_;
String exchangeDescription_;
String username_;
String password_;
String secretKey_;
String apiKey_;
String sslUri_;
String plainTextUri_;
String sslUriStreaming_;
String plainTextUriStreaming_;
String host_;
unsigned short port_;
String exchangeClassName_;
QMap<String, QVariant> exchangeSpecificParameters_;
};
#endif // EXCHANGESPECIFICATION_H