SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
Subscribe.h
1 /*
2  Copyright © CloudBackend AB 2022-2023.
3  */
4 
5 #ifndef INCLUDE_CBE_SUBSCRIBE_H_
6 #define INCLUDE_CBE_SUBSCRIBE_H_
7 
8 #include <string>
9 
10 #include "cbe/Types.h"
11 
12 namespace CBI {
13 class Subscribe;
14 using SubscribePtr = std::shared_ptr<CBI::Subscribe>;
15 } // namespace CBI
16 
17 namespace cbe {
18 
24 class Subscribe {
25 public:
29  cbe::Date getDate() const;
33  std::string getTitle() const;
37  std::string getDescription() const;
44  std::string getPassword() const;
70  void unSubscribe();
71 
73  ~Subscribe();
74 
75  explicit operator bool() const;
76 private:
77  struct Impl;
78  std::shared_ptr<Impl> pImpl{};
79 
80  friend class CloudBackend;
81  friend class Item;
82  Subscribe(CBI::SubscribePtr cbiSubscribePtr);
83  CBI::Subscribe& getCbiPeer() const;
84 }; // class Subscribe
85 } // namespace cbe
86 
87 #endif // INCLUDE_CBE_SUBSCRIBE_H_
The session that holds the connection with the cloud.
Definition: CloudBackend.h:47
A set made up of Container and Object.
Definition: Item.h:36
Managing a subscribed Item.
Definition: Subscribe.h:24
cbe::SubscribeId getSubscribeId() const
void unSubscribe()
std::string getDescription() const
cbe::UserId getOwner() const
std::string getPassword() const
cbe::PublishId getPublishId() const
cbe::Date getDate() const
std::string getTitle() const
cbe::PublishAccess getSecurity() const
cbe::PublishVisibility getPrivacy() const
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
std::uint64_t UserId
Uniquely identifies the CBE user number.
Definition: Types.h:126
DefaultCtor
Default constructor marker.
Definition: Types.h:204
PublishVisibility
Definition: Types.h:357
PublishAccess
Definition: Types.h:342
std::uint64_t SubscribeId
Id of a subscription of a cbe::Container or cbe::Object.
Definition: Types.h:122
std::uint64_t Date
A time-stamp in the unix epoch format.
Definition: Types.h:80
std::uint64_t PublishId
Id of a subscribed cbe::Container or cbe::Object.
Definition: Types.h:104