1 //------------------------------------------------------------------------
4 // Category : Interfaces
5 // Filename : pluginterfaces/vst/ivstmessage.h
6 // Created by : Steinberg, 04/2005
7 // Description : VST Message Interfaces
9 //-----------------------------------------------------------------------------
10 // This file is part of a Steinberg SDK. It is subject to the license terms
11 // in the LICENSE file found in the top-level directory of this distribution
12 // and at www.steinberg.net/sdklicenses.
13 // No part of the SDK, including this file, may be copied, modified, propagated,
14 // or distributed except according to the terms contained in the LICENSE file.
15 //-----------------------------------------------------------------------------
19 #include "pluginterfaces/vst/ivstattributes.h"
21 //------------------------------------------------------------------------
22 #include "pluginterfaces/base/falignpush.h"
23 //------------------------------------------------------------------------
25 //------------------------------------------------------------------------
29 //------------------------------------------------------------------------
30 /** Private plug-in message: Vst::IMessage
31 \ingroup vstIHost vst300
33 - [create via IHostApplication::createInstance]
37 Messages are sent from a VST controller component to a VST editor component and vice versa.
38 \see IAttributeList, IConnectionPoint, \ref vst3Communication
40 class IMessage
: public FUnknown
43 //------------------------------------------------------------------------
44 /** Returns the message ID (for example "TextMessage"). */
45 virtual FIDString PLUGIN_API
getMessageID () = 0;
47 /** Sets a message ID (for example "TextMessage"). */
48 virtual void PLUGIN_API
setMessageID (FIDString id
/*in*/) = 0;
50 /** Returns the attribute list associated to the message. */
51 virtual IAttributeList
* PLUGIN_API
getAttributes () = 0;
53 //------------------------------------------------------------------------
54 static const FUID iid
;
57 DECLARE_CLASS_IID (IMessage
, 0x936F033B, 0xC6C047DB, 0xBB0882F8, 0x13C1E613)
59 //------------------------------------------------------------------------
60 /** Connect a component with another one: Vst::IConnectionPoint
61 \ingroup vstIPlug vst300
67 This interface is used for the communication of separate components.
68 Note that some hosts will place a proxy object between the components so that they are not directly connected.
70 \see \ref vst3Communication
72 class IConnectionPoint
: public FUnknown
75 //------------------------------------------------------------------------
76 /** Connects this instance with another connection point. */
77 virtual tresult PLUGIN_API
connect (IConnectionPoint
* other
) = 0;
79 /** Disconnects a given connection point from this. */
80 virtual tresult PLUGIN_API
disconnect (IConnectionPoint
* other
) = 0;
82 /** Called when a message has been sent from the connection point to this. */
83 virtual tresult PLUGIN_API
notify (IMessage
* message
) = 0;
85 //------------------------------------------------------------------------
86 static const FUID iid
;
89 DECLARE_CLASS_IID (IConnectionPoint
, 0x70A4156F, 0x6E6E4026, 0x989148BF, 0xAA60D8D1)
91 //------------------------------------------------------------------------
93 } // namespace Steinberg
95 //------------------------------------------------------------------------
96 #include "pluginterfaces/base/falignpop.h"
97 //------------------------------------------------------------------------