#ifndef __IGUIEXTENSIONINTERFACE_H__ #define __IGUIEXTENSIONINTERFACE_H__ #include "StreamInterface/StreamInterface.pkg" #include "MarshalSupport/MarshalSupport.pkg" #include "HierarchicalStorage/HierarchicalStorage.pkg" #include "IViewManager.h" #include #include using namespace MarshalSupport::Operators; //##TODO## Add a method here to create an image, so our system object doesn't have to // explicitly link to the image library? class IGUIExtensionInterface { public: // Constructors inline virtual ~IGUIExtensionInterface() = 0; // Interface version functions static inline unsigned int ThisIGUIExtensionInterfaceVersion() { return 1; } virtual unsigned int GetIGUIExtensionInterfaceVersion() const = 0; // View manager functions virtual IViewManager& GetViewManager() const = 0; // Window functions virtual void* GetMainWindowHandle() const = 0; // Module functions virtual bool CanModuleBeLoaded(const Marshal::In& filePath) const = 0; virtual bool LoadModuleFromFile(const Marshal::In& filePath) = 0; virtual void UnloadModule(unsigned int moduleID) = 0; virtual void UnloadAllModules() = 0; // Global preference functions virtual bool GetGlobalPreference(const Marshal::In& name, IHierarchicalStorageNode& node) const = 0; virtual void SetGlobalPreference(const Marshal::In& name, const IHierarchicalStorageNode& node) = 0; virtual void ClearGlobalPreference(const Marshal::In& name) = 0; virtual Marshal::Ret GetGlobalPreferencePathModules() const = 0; virtual Marshal::Ret GetGlobalPreferencePathSavestates() const = 0; virtual Marshal::Ret GetGlobalPreferencePathPersistentState() const = 0; virtual Marshal::Ret GetGlobalPreferencePathWorkspaces() const = 0; virtual Marshal::Ret GetGlobalPreferencePathCaptures() const = 0; virtual Marshal::Ret GetGlobalPreferencePathAssemblies() const = 0; virtual Marshal::Ret GetGlobalPreferenceInitialSystem() const = 0; virtual Marshal::Ret GetGlobalPreferenceInitialWorkspace() const = 0; virtual bool GetGlobalPreferenceEnableThrottling() const = 0; virtual bool GetGlobalPreferenceRunWhenProgramModuleLoaded() const = 0; virtual bool GetGlobalPreferenceEnablePersistentState() const = 0; virtual bool GetGlobalPreferenceLoadWorkspaceWithDebugState() const = 0; virtual bool GetGlobalPreferenceShowDebugConsole() const = 0; // Assembly functions virtual bool LoadAssembly(const Marshal::In& filePath) = 0; // File selection functions virtual bool SelectExistingFile(const Marshal::In& selectionTypeString, const Marshal::In& defaultExtension, const Marshal::In& initialFilePath, const Marshal::In& initialDirectory, bool scanIntoArchives, const Marshal::Out& selectedFilePath) const = 0; virtual bool SelectNewFile(const Marshal::In& selectionTypeString, const Marshal::In& defaultExtension, const Marshal::In& initialFilePath, const Marshal::In& initialDirectory, const Marshal::Out& selectedFilePath) const = 0; virtual Marshal::Ret> PathSplitElements(const Marshal::In& path) const = 0; virtual Stream::IStream* OpenExistingFileForRead(const Marshal::In& path) const = 0; virtual void DeleteFileStream(Stream::IStream* stream) const = 0; }; IGUIExtensionInterface::~IGUIExtensionInterface() { } #endif