InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICSXSVulcanMessageHandler.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Reena Agrawal
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2014 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: All information contained herein is, and remains
20 // the property of Adobe Systems Incorporated and its suppliers,
21 // if any. The intellectual and technical concepts contained
22 // herein are proprietary to Adobe Systems Incorporated and its
23 // suppliers and may be covered by U.S. and Foreign Patents,
24 // patents in process, and are protected by trade secret or copyright law.
25 // Dissemination of this information or reproduction of this material
26 // is strictly forbidden unless prior written permission is obtained
27 // from Adobe Systems Incorporated.
28 //
29 //========================================================================================
30 
31 #ifndef __ICSXSVulcanMessageWrapper__
32 #define __ICSXSVulcanMessageWrapper__
33 
34 #include "IPMUnknown.h"
35 #include "CSXSID.h"
36 
38 {
39 public:
40  enum { kDefaultIID = IID_ICSXSVULCANMESSAGEHANDLER } ;
41 
42  typedef void (*MessageListenerFn) (const std::string& message);
43 
55  virtual void SendMessage(const std::string &messageType, const std::string& appId, const std::string& appVersion, const std::string& message) = 0;
56 
63  virtual void AddMessageListener(MessageListenerFn messageListener, const std::string &messageType) = 0;
64 
71  virtual void RemoveMessageListener(MessageListenerFn messageListener, const std::string &messageType) = 0;
72 
73 } ;
74 
75 #endif