1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2007, 2008 Christian Schoenebeck * |
* Copyright (C) 2007 - 2009 Christian Schoenebeck * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
67 |
* (i.e. @c "libgig" ) |
* (i.e. @c "libgig" ) |
68 |
* @param sTypeVersion - version of the instrument data structure |
* @param sTypeVersion - version of the instrument data structure |
69 |
* (i.e. @c "3.0.1" ). |
* (i.e. @c "3.0.1" ). |
70 |
|
* @param pUserData - (optional) arbitrary 3rd party data that might |
71 |
|
* been passed by Launch() |
72 |
*/ |
*/ |
73 |
virtual int Main(void* pInstrument, String sTypeName, String sTypeVersion) = 0; |
virtual int Main(void* pInstrument, String sTypeName, String sTypeVersion, void* pUserData = NULL) = 0; |
74 |
|
|
75 |
/** |
/** |
76 |
* The instrument editor has to return @c true in case it supports |
* The instrument editor has to return @c true in case it supports |
193 |
* Launch the instrument editor for the given instrument. The |
* Launch the instrument editor for the given instrument. The |
194 |
* editor will be spawned in its own thread and this method will |
* editor will be spawned in its own thread and this method will |
195 |
* return as soon as the editor's thread actually started. |
* return as soon as the editor's thread actually started. |
196 |
|
* |
197 |
|
* @param pUserData - (optional) arbitrary 3rd party data that might |
198 |
|
* e.g. been passed by |
199 |
|
* InstrumentManager::LaunchInstrumentEditor() |
200 |
*/ |
*/ |
201 |
void Launch(void* pInstrument, String sTypeName, String sTypeVersion); |
void Launch(void* pInstrument, String sTypeName, String sTypeVersion, void* pUserData = NULL); |
202 |
|
|
203 |
/** |
/** |
204 |
* Registers object that wants to be notified on events. |
* Registers object that wants to be notified on events. |
229 |
void* pInstrument; |
void* pInstrument; |
230 |
String sTypeName; |
String sTypeName; |
231 |
String sTypeVersion; |
String sTypeVersion; |
232 |
|
void* pUserData; |
233 |
}; |
}; |
234 |
|
|
235 |
/** @brief Instrument Editor Notifications |
/** @brief Instrument Editor Notifications |