client-cpp  0.8.1
Kaa.hpp
Go to the documentation of this file.
1 
17 #ifndef KAA_HPP_
18 #define KAA_HPP_
19 
20 #include <memory>
21 
22 #include <botan/botan.h>
23 #include <botan/init.h>
24 
25 #include "kaa/IKaaClient.hpp"
29 
30 namespace kaa {
31 
37 class Kaa
38 {
39 public:
43  Kaa() = delete;
44 
48  Kaa(const Kaa&) = delete;
49 
53  Kaa& operator=(const Kaa&) = delete;
54 
63  static std::shared_ptr<IKaaClient> newClient(IKaaClientPlatformContextPtr context = std::make_shared<KaaClientPlatformContext>()
65 
66 private:
67  static Botan::LibraryInitializer botanInit_;
68 };
69 
70 }
71 
72 #endif
std::shared_ptr< IKaaClientPlatformContext > IKaaClientPlatformContextPtr
Kaa()=delete
Use newClient() to create a Kaa client instance.
Kaa & operator=(const Kaa &)=delete
Use newClient() to create a Kaa client instance.
static std::shared_ptr< IKaaClient > newClient(IKaaClientPlatformContextPtr context=std::make_shared< KaaClientPlatformContext >(), IKaaClientStateListenerPtr listener=IKaaClientStateListenerPtr())
Creates a new instance of a Kaa client.
Creates a new Kaa client based on IKaaClientPlatformContext and optional IKaaClientStateListener.
Definition: Kaa.hpp:37
std::shared_ptr< IKaaClientStateListener > IKaaClientStateListenerPtr