CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxAppInfo.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2023 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19#include "FxPragmaPush.h"
20
21#include "DDKERNEL.h"
22#include "FxString.h"
23
24#include <RxObject.h>
25
26class CFxSettings;
27
34{
35public:
37 ~CFxAppInfo(void) override;
38
40
41 typedef enum _ApplicationType
42 {
43 eUnknown = 0x0,
44 eARX = 0x1,
45 eLISP = 0x2,
46 eDLL = 0x4,
47 eDRX = 0x8,
48 eALL = eARX | eLISP | eDLL | eDRX
49 } ApplicationType;
50
51 typedef enum _LoadReasons
52 {
53 eOnProxyDetection = 0x1,
54 eOnDWGDirectStartup = 0x2,
55 eOnCommandInvocation = 0x4,
56 eOnLoadRequest = 0x8,
57 eLoadDisabled = 0x10,
58 eTransparentlyLoadable = 0x20,
59 } LoadReasons;
60
61 typedef enum _Status
62 {
63 eUnloaded = 0x1,
64 eLoaded = 0x2,
65 eNotFound = 0x3,
66 eError = 0x4,
67 eAlreadyLoaded = 0x5,
68 } Status;
69
70 virtual ApplicationType GetType() const = 0;
71 virtual void SetType(ApplicationType type) = 0;
72
73 virtual LoadReasons GetLoadReasons() const = 0;
74 virtual void SetLoadReasons(LoadReasons reasons) = 0;
75
76 virtual const CFxString& GetFileName() const = 0;
77 virtual void SetFileName(const CFxString& strName) = 0;
78
79 virtual const CFxString& GetAppName() const = 0;
80 virtual void SetAppName(const CFxString& strName) = 0;
81
82 virtual const CFxString& GetAppDesc() const = 0;
83 virtual void SetAppDesc(const CFxString& strName) = 0;
84
85 virtual void SetManaged(bool bManaged) = 0;
86 virtual bool IsManaged() const = 0;
87
88 virtual bool Load( CFxSettings* settings, const CFxString& strKey ) = 0;
89 virtual bool Save( CFxSettings* settings, const CFxString& strKey ) = 0;
90
91 virtual void SetGlobalCommandNames( const CFxStringArray& names ) = 0;
92 virtual void GetGlobalCommandNames( CFxStringArray& names ) const = 0;
93
94 virtual void SetLocalCommandNames( const CFxStringArray& names ) = 0;
95 virtual void GetLocalCommandNames( CFxStringArray& names ) const = 0;
96
97 virtual void SetGroupNames( const CFxStringArray& names ) = 0;
98 virtual void GetGroupNames( CFxStringArray& names ) const = 0;
99
100 virtual Status GetStatus() const = 0;
101
102 void addRef() override {};
103 void release() override {};
104};
105
107
108#include "FxPragmaPop.h"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
OdSmartPtr< CFxAppInfo > CFxAppInfoPtr
Definition: FxAppInfo.h:106
@ eNotFound
std::vector< CFxString > CFxStringArray
Definition: FxString.h:35
enum CFxAppInfo::_LoadReasons LoadReasons
enum CFxAppInfo::_ApplicationType ApplicationType
virtual const CFxString & GetFileName() const =0
virtual bool IsManaged() const =0
virtual void SetFileName(const CFxString &strName)=0
virtual void SetType(ApplicationType type)=0
virtual void SetAppName(const CFxString &strName)=0
virtual void SetGlobalCommandNames(const CFxStringArray &names)=0
virtual void SetLoadReasons(LoadReasons reasons)=0
virtual LoadReasons GetLoadReasons() const =0
~CFxAppInfo(void) override
virtual void SetManaged(bool bManaged)=0
virtual Status GetStatus() const =0
virtual const CFxString & GetAppDesc() const =0
virtual const CFxString & GetAppName() const =0
virtual void SetGroupNames(const CFxStringArray &names)=0
virtual void GetGroupNames(CFxStringArray &names) const =0
enum CFxAppInfo::_Status Status
void release() override
Definition: FxAppInfo.h:103
virtual void SetLocalCommandNames(const CFxStringArray &names)=0
virtual void GetLocalCommandNames(CFxStringArray &names) const =0
virtual ApplicationType GetType() const =0
virtual void SetAppDesc(const CFxString &strName)=0
virtual bool Save(CFxSettings *settings, const CFxString &strKey)=0
virtual bool Load(CFxSettings *settings, const CFxString &strKey)=0
void addRef() override
Definition: FxAppInfo.h:102
_ApplicationType
Definition: FxAppInfo.h:42
ODRX_DECLARE_MEMBERS(CFxAppInfo)
virtual void GetGlobalCommandNames(CFxStringArray &names) const =0
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274