SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
SearchGroupsDelegate.h
1 #ifndef CBE__delegate__SearchGroupsDelegate_h__
2 #define CBE__delegate__SearchGroupsDelegate_h__
3 
4 #include "cbe/Types.h"
5 #include "cbe/delegate/Error.h"
6 #include "cbe/util/Context.h"
7 #include "cbe/util/ErrorInfo.h"
8 #include "cbe/util/Exception.h"
9 
10 namespace cbe {
11  namespace delegate {
12 
20 public:
27  virtual void onSearchGroupsSuccess(cbe::GroupQueryResult&& queryResult) = 0;
28 
29  using Error = delegate::Error;
33  virtual void onSearchGroupsError(delegate::Error&& error, cbe::util::Context&& context) = 0;
34 
39  using Base::Base; // Inherit base class' constructors
40  }; // struct ErrorInfo
41 
42 #ifndef CBE_NO_SYNC
48  struct Exception : cbe::util::ExceptionImpl<ErrorInfo> {
49  using Base::Base; // Inherit base class' constructors
50  }; // class struct CloudBackend::SearchGroupsException
51 #endif // #ifndef CBE_NO_SYNC
52 
53  virtual ~SearchGroupsDelegate();
54 }; // class SearchGroupsDelegate
55 
62 using SearchGroupsDelegatePtr = std::shared_ptr<SearchGroupsDelegate>;
63  } // namespace delegate
64 } // namespace cbe
65 #endif
Resultset of data retrieved in a search for Group.
Definition: GroupQueryResult.h:27
Definition: Error.h:14
Definition: SearchGroupsDelegate.h:19
virtual void onSearchGroupsError(delegate::Error &&error, cbe::util::Context &&context)=0
virtual void onSearchGroupsSuccess(cbe::GroupQueryResult &&queryResult)=0
std::shared_ptr< SearchGroupsDelegate > SearchGroupsDelegatePtr
Definition: SearchGroupsDelegate.h:62
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
Definition: SearchGroupsDelegate.h:38
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38