Code

Added skeleton files for other filter primitives' SP-objects. Added blur slider on...
[inkscape.git] / src / jabber_whiteboard / defines.h
index cef369056e4a6ccdbb89a163e3f0a55f21974742..e08d876a680de0ec5f126fec65f6529b3205f5a3 100644 (file)
@@ -67,7 +67,7 @@ namespace Whiteboard {
 
 namespace Message {
 
-    typedef int const Wrapper;
+    typedef char const* Wrapper;
     typedef char const* Message;
 
     extern Wrapper PROTOCOL;
@@ -98,19 +98,23 @@ namespace State {
     extern SessionType WHITEBOARD_MUC; 
     extern SessionType WHITEBOARD_PEER;
 
+    typedef char const* SessionState;
+}
+
+namespace Dialog {
+
+enum DialogReply {
+
+    ACCEPT_INVITATION =     0,
+    DECLINE_INVITATION =    1
+};
+
 }
 
 // message types
 // explicitly numbered to aid protocol description later on
 
 
-// Responses to whiteboard invitations
-enum InvitationResponses {
-       ACCEPT_INVITATION,
-       DECLINE_INVITATION,
-       PEER_ALREADY_IN_SESSION,
-       UNSUPPORTED_PROTOCOL
-};
 
 // Message handler modes
 enum HandlerMode {
@@ -181,6 +185,9 @@ typedef std::list< ReceivedCommitEvent > CommitsQueue;
 // Message serialization
 typedef std::list< Glib::ustring > SerializedEventList;
 
+
+    //typedef std::pair< Glib::ustring, InvitationResponses > Invitation_response_type;
+    //typedef std::list< Invitation_response_type > Invitation_responses_type;
 // Error handling -- someday
 // TODO: finish and integrate this
 //typedef boost::function< LmHandlerResult (unsigned int code) > ErrorHandlerFunctor;