client-cpp  0.10.0
KaaDefaults.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2016 CyberVision, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef KAADEFAULTS_HPP_
18 #define KAADEFAULTS_HPP_
19 
20 #include <map>
21 #include <list>
22 #include <string>
23 
24 #include <botan/base64.h>
25 #include <cstdint>
26 
29 
30 #define KAA_LOG_LEVEL_NONE 0
31 #define KAA_LOG_LEVEL_FATAL 1
32 #define KAA_LOG_LEVEL_ERROR 2
33 #define KAA_LOG_LEVEL_WARNING 3
34 #define KAA_LOG_LEVEL_INFO 4
35 #define KAA_LOG_LEVEL_DEBUG 5
36 #define KAA_LOG_LEVEL_TRACE 6
37 #define KAA_LOG_LEVEL_FINE_TRACE 7
38 
39 #define KAA_LOG_LEVEL KAA_MAX_LOG_LEVEL
40 
41 namespace kaa {
42 
46 extern const char * const BUILD_VERSION;
47 extern const char * const BUILD_COMMIT_HASH;
48 
49 extern const char * const SDK_TOKEN;
50 
51 extern const std::uint32_t POLLING_PERIOD_SECONDS;
52 
53 extern const char * const CLIENT_PUB_KEY_LOCATION;
54 extern const char * const CLIENT_PRIV_KEY_LOCATION;
55 extern const char * const CLIENT_STATUS_FILE_LOCATION;
56 
57 extern const char * const DEFAULT_USER_VERIFIER_TOKEN;
58 
59 
60 
61 typedef std::vector<ITransportConnectionInfoPtr> BootstrapServers;
63 
64 const Botan::secure_vector<std::uint8_t>& getDefaultConfigData();
65 
67 
68 }
69 
70 #endif /* KAADEFAULTS_HPP_ */
const char *const CLIENT_STATUS_FILE_LOCATION
const std::uint32_t POLLING_PERIOD_SECONDS
const char *const CLIENT_PRIV_KEY_LOCATION
const char *const DEFAULT_USER_VERIFIER_TOKEN
const BootstrapServers & getBootstrapServers()
const char *const CLIENT_PUB_KEY_LOCATION
std::vector< ITransportConnectionInfoPtr > BootstrapServers
Definition: KaaDefaults.hpp:61
std::vector< std::uint8_t > HashDigest
const Botan::secure_vector< std::uint8_t > & getDefaultConfigData()
const char *const SDK_TOKEN
const char *const BUILD_VERSION
const char *const BUILD_COMMIT_HASH
HashDigest getPropertiesHash()