libIntegra
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
module_manager.h
Go to the documentation of this file.
1 /* libIntegra modular audio framework
2  *
3  * Copyright (C) 2007 Birmingham City University
4  *
5  * 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
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18  * USA.
19  */
20 
25 #ifndef INTEGRA_MODULE_MANAGER_API_H
26 #define INTEGRA_MODULE_MANAGER_API_H
27 
28 #include "common_typedefs.h"
29 #include "error.h"
30 #include "guid_helper.h"
31 
32 
33 namespace integra_api
34 {
35  class CModuleInstallResult;
36  class CModuleUninstallResult;
37  class CLoadModuleInDevelopmentResult;
38 
44  class INTEGRA_API IModuleManager
45  {
46  protected:
47 
48  IModuleManager() {}
49 
50  public:
51 
52  virtual ~IModuleManager() {}
53 
61  virtual CError install_module( const string &module_file, CModuleInstallResult &result ) = 0;
62 
71  virtual CError install_embedded_module( const GUID &module_id ) = 0;
72 
81  virtual CError uninstall_module( const GUID &module_id, CModuleUninstallResult &result ) = 0;
82 
95  virtual CError load_module_in_development( const string &module_file, CLoadModuleInDevelopmentResult &result ) = 0;
96 
104  virtual CError unload_unused_embedded_modules() = 0;
105  };
106 
107 
111  class INTEGRA_API CModuleInstallResult
112  {
113  public:
116 
119  };
120 
121 
125  class INTEGRA_API CModuleUninstallResult
126  {
127  public:
133  };
134 
135 
140  {
141  public:
144 
147 
152  };
153 }
154 
155 
156 
157 #endif
bool remains_as_embedded
Definition: module_manager.h:132
return structure for IModuleManager::load_module_in_development
Definition: module_manager.h:139
bool previous_remains_as_embedded
Definition: module_manager.h:151
GUID module_id
Definition: module_manager.h:115
bool was_previously_embedded
Definition: module_manager.h:118
Defines class CError.
Definition: common_typedefs.h:45
return structure for IModuleManager::install_module
Definition: module_manager.h:111
Defines class CGuidHelper, and guid containers.
Represents an enumeration of error codes.
Definition: error.h:40
Provides funtionality to interact with 3rd party, embedded and in-development modules.
Definition: module_manager.h:44
return structure for IModuleManager::uninstall_module
Definition: module_manager.h:125
GUID previous_module_id
Definition: module_manager.h:146
GUID module_id
Definition: module_manager.h:143
#defines and typedefs used throughout the application