BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bseclientapi.hh
Go to the documentation of this file.
1  // --- Generated by AidaCxxStub ---
2 #ifndef __BST_BSECLIENTAPI_HH_
3 #define __BST_BSECLIENTAPI_HH_
4 
5 
6 // --- ClientHH Boilerplate ---
7 #include <rapicorn-core.hh>
8 
9 // --- Interfaces (class declarations) ---
10 
11 namespace Bse {
12 
15 class TestObjectHandle : public virtual Rapicorn::Aida::RemoteHandle
17 {
19  size_t __aida_connect__echo_reply (size_t, const std::function<void (const std::string &msg)>&);
20  static TestObjectHandle __aida_cast__ (Rapicorn::Aida::RemoteHandle&, const Rapicorn::Aida::TypeHashList&);
21  static const Rapicorn::Aida::TypeHash& __aida_typeid__();
22 protected:
23 public:
24  virtual /*Des*/ ~TestObjectHandle () override;
25  static Rapicorn::Aida::BaseConnection* __aida_connection__();
26  const Rapicorn::Aida::TypeHashList __aida_typelist__();
27  template<class RemoteHandle>
28  static TestObjectHandle down_cast (RemoteHandle smh) { return smh == NULL ? TestObjectHandle() : __aida_cast__ (smh, smh.__aida_typelist__()); }
29  explicit TestObjectHandle ();
30  __Aida_Signal__echo_reply sig_echo_reply () { return __Aida_Signal__echo_reply (*this, &TestObjectHandle::__aida_connect__echo_reply); }
31  int echo_test (const std::string &msg);
32 };
33 void operator<<= (Rapicorn::Aida::FieldBuffer&, const TestObjectHandle&);
34 void operator>>= (Rapicorn::Aida::FieldReader&, TestObjectHandle&);
36 
38 enum UserMessageType {
39  ERROR = 1,
40  WARNING = 2,
41  INFO = 3,
42  DEBUG = 4,
43 };
44 inline void operator<<= (Rapicorn::Aida::FieldBuffer &fb, UserMessageType e) { fb <<= Rapicorn::Aida::EnumValue (e); }
45 inline void operator>>= (Rapicorn::Aida::FieldReader &frr, UserMessageType &e) { e = UserMessageType (frr.pop_evalue()); }
47 
48 struct UserMessage
49 {
52  std::string title;
53  std::string text1;
54  std::string text2;
55  std::string text3;
56  std::string label;
58  inline UserMessage () { type = UserMessageType (0); }
59  std::string __aida_type_name__ () const { return "Bse::UserMessage"; }
60  bool operator== (const UserMessage &other) const;
61  bool operator!= (const UserMessage &other) const { return !operator== (other); }
62 };
63 void operator<<= (Rapicorn::Aida::FieldBuffer&, const UserMessage&);
64 void operator>>= (Rapicorn::Aida::FieldReader&, UserMessage&);
65 
68 class ServerHandle : public virtual Rapicorn::Aida::RemoteHandle
70 {
72  size_t __aida_connect__user_message (size_t, const std::function<void (const UserMessage &umsg)>&);
73  static ServerHandle __aida_cast__ (Rapicorn::Aida::RemoteHandle&, const Rapicorn::Aida::TypeHashList&);
74  static const Rapicorn::Aida::TypeHash& __aida_typeid__();
75 protected:
76 public:
77  virtual /*Des*/ ~ServerHandle () override;
78  static Rapicorn::Aida::BaseConnection* __aida_connection__();
79  const Rapicorn::Aida::TypeHashList __aida_typelist__();
80  template<class RemoteHandle>
81  static ServerHandle down_cast (RemoteHandle smh) { return smh == NULL ? ServerHandle() : __aida_cast__ (smh, smh.__aida_typelist__()); }
82  explicit ServerHandle ();
83  __Aida_Signal__user_message sig_user_message () { return __Aida_Signal__user_message (*this, &ServerHandle::__aida_connect__user_message); }
84  TestObjectHandle get_test_object ();
85 };
86 void operator<<= (Rapicorn::Aida::FieldBuffer&, const ServerHandle&);
87 void operator>>= (Rapicorn::Aida::FieldReader&, ServerHandle&);
89 } // Bse
90 
91 namespace Rapicorn {
92 
93 namespace Aida {
94 
95 template<> const EnumValue* enum_value_list<Bse::UserMessageType> ();
96 } // Aida
97 } // Rapicorn
98 
99 #endif /* __BST_BSECLIENTAPI_HH_ */
UserMessageType type
Severity classification for this message.
Definition: bseapi.idl:24
See also the corresponding IDL class TestObject.
Definition: bseclientapi.hh:16
String text3
Possibly (technical) details or machine error message.
Definition: bseapi.idl:28
TestObjectHandle get_test_object()
See Server::get_test_object()
Indicate a message about an error condition.
Definition: bseapi.idl:16
Indicate an informational message.
Definition: bseapi.idl:18
String title
Usually GUI window title.
Definition: bseapi.idl:25
TestObjectHandle TestObjectH
Convenience alias for the IDL type TestObject.
Definition: bseclientapi.hh:35
See also the corresponding IDL class Server.
Definition: bseclientapi.hh:69
String text1
Primary message to the user, should be limited to 80-100 chars.
Definition: bseapi.idl:26
int echo_test(const std::string &msg)
See TestObject::echo_test()
Definition: bseclientapi.cc:164
ServerHandle ServerH
Convenience alias for the IDL type Server.
Definition: bseclientapi.hh:88
UserMessageType
Definition: bseapi.idl:15
Indicate a debugging message (usually insignificant).
Definition: bseapi.idl:19
Indicate a message about a possibly harmful condition.
Definition: bseapi.idl:17
String text2
Explanatory (secondary) message no limitations recommended.
Definition: bseapi.idl:27
String label
Message class label, used to enable/disable this type of message.
Definition: bseapi.idl:29