SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
RemoveDelegate.h
1 #ifndef CBE__delegate__group__RemoveDelegate_h__
2 #define CBE__delegate__group__RemoveDelegate_h__
3 
4 #include "cbe/QueryResult.h"
5 #include "cbe/Types.h"
6 
7 #include "cbe/delegate/Error.h"
8 
9 #include "cbe/util/Context.h"
10 #include "cbe/util/ErrorInfo.h"
11 #include "cbe/util/Exception.h"
12 
13 #include <memory>
14 
15 namespace cbe {
16  namespace delegate {
17  namespace group {
18 class RemoveSuccess;
26 public:
27  using Success = RemoveSuccess;
33  virtual void onRemoveSuccess(cbe::GroupId groupId,
34  std::string&& groupName) = 0;
35 
36  using Error = delegate::Error;
40  virtual void onRemoveError(Error&& error, cbe::util::Context&& context) = 0;
41 
46  using Base::Base; // Inherit base class' constructors
47  }; // struct ErrorInfo
48 
49 #ifndef CBE_NO_SYNC
55  struct Exception : cbe::util::ExceptionImpl<ErrorInfo> {
56  using Base::Base; // Inherit base class' constructors
57  }; // class struct CloudBackend::RemoveException
58 #endif // #ifndef CBE_NO_SYNC
59 
60  virtual ~RemoveDelegate();
61 }; // class RemoveDelegate
62 
69 using RemoveDelegatePtr = std::shared_ptr<RemoveDelegate>;
70 
77 public:
78  cbe::GroupId groupId{};
79  std::string groupName{};
80 
81  RemoveSuccess();
84  std::string&& groupName);
85 };
86 
87  } // namespace group
88  } // namespace delegate
89 } // namespace cbe
90 
91 #endif // !CBE__delegate__group__RemoveDelegate_h__
Definition: Error.h:14
Definition: RemoveDelegate.h:25
virtual void onRemoveError(Error &&error, cbe::util::Context &&context)=0
virtual void onRemoveSuccess(cbe::GroupId groupId, std::string &&groupName)=0
Convenience type that bundles all parameters passed to method cbe::delegate::group::RemoveDelegate::o...
Definition: RemoveDelegate.h:76
std::shared_ptr< RemoveDelegate > RemoveDelegatePtr
Definition: RemoveDelegate.h:69
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
DefaultCtor
Default constructor marker.
Definition: Types.h:204
std::uint64_t GroupId
Uniquely identifies the Group.
Definition: Types.h:84
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38