SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
Publish.h
1 /*
2  Copyright © CloudBackend AB 2022-2025.
3 */
4 
5 #ifndef INCLUDE_CBE_PUBLISH_H_
6 #define INCLUDE_CBE_PUBLISH_H_
7 
8 #include <string>
9 
10 #include "cbe/Types.h"
11 
12 namespace CBI {
13 class Publish;
14 using PublishPtr = std::shared_ptr<CBI::Publish>;
15 } // namespace CBI
16 
17 namespace cbe {
18 
23 class Publish {
24 public:
30  void setTitle(const std::string &title);
31 
38 
45 
51  void setPassword(const std::string &password);
52 
58  void setDescription(const std::string &description);
59 
63  std::string getTitle() const;
80  std::string getPassword() const;
84  std::string getDescription() const;
89 
99  ~Publish();
100 
113  explicit operator bool() const;
114 private:
115  struct Impl;
116  std::shared_ptr<Impl> pImpl{};
117 
118  friend class CloudBackend;
119  friend class Item;
120  Publish(CBI::PublishPtr cbiPeerPtr);
121  CBI::Publish& getCbiPeer() const;
122 }; // class Publish
123 
124 } // namespace cbe
125 
126 #endif // INCLUDE_CBE_PUBLISH_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 published Item.
Definition: Publish.h:23
void setPassword(const std::string &password)
Set the Password of this publication.
cbe::PublishId getPublishId() const
cbe::PublishVisibility getPrivacy() const
void setTitle(const std::string &title)
Set the Title of this publication.
std::string getTitle() const
Publish(cbe::DefaultCtor)
Default constructor.
std::string getDescription() const
void setDescription(const std::string &description)
Set the Description of this publication.
void setSecurity(cbe::PublishAccess security)
Set the Security of this publication.
cbe::PublishAccess getSecurity() const
std::string getPassword() const
void setPrivacy(cbe::PublishVisibility privacy)
Set the Privacy of this publication.
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
DefaultCtor
Default constructor marker.
Definition: Types.h:204
PublishVisibility
Definition: Types.h:357
PublishAccess
Definition: Types.h:342
std::uint64_t PublishId
Id of a subscribed cbe::Container or cbe::Object.
Definition: Types.h:104