6 #ifndef SWIFT_MISC_APPLICATIONINFO_H
7 #define SWIFT_MISC_APPLICATIONINFO_H
43 IndexApplication = CPropertyIndexRef::GlobalIndexCApplicationInfo,
44 IndexApplicationAsString,
45 IndexApplicationDataPath,
48 IndexExecutablePathExisting,
68 const QString &getApplicationAsString()
const;
79 bool isExecutablePathExisting()
const;
120 bool isSampleOrUnitTest()
const;
123 bool isUnitTest()
const;
129 QString asOtherSwiftVersionString(
const QString &separator =
" | ")
const;
132 QString convertToQString(
bool i18n =
false)
const;
147 static const QString &swiftPilotClientGui();
150 static const QString &swiftLauncher();
153 static const QString &swiftMappingTool();
156 static const QString &swiftCore();
162 static const QString &fileName();
168 int m_app =
static_cast<int>(Unknown);
171 QString m_applicationDataDir;
173 QString m_compileInfo;
175 CProcessInfo m_process;
178 static Application guessApplication();
Description of a swift application.
Application getApplication() const
Get application.
void setVersionString(const QString &version)
Set version string.
void setProcessInfo(const CProcessInfo &process)
Set process info.
const QString & getExecutablePath() const
Get executable path.
Application
Enumeration of application roles.
ColumnIndex
Properties by index.
const QString & getPlatform() const
Get platform.
int getWordSize() const
Word size.
void setExecutablePath(const QString &exePath)
Set executable path.
CApplicationInfo()=default
Default constructor.
const QString & getApplicationDataDirectory() const
Set application data dir.
const QString & getVersionString() const
Get version string.
void setCompileInfo(const QString &info)
Compile info.
const CProcessInfo & getProcessInfo() const
Get process info.
void setWordSize(int size)
Word size.
void setApplication(Application app)
Set application.
void setApplicationDataDirectory(const QString &appDataDir)
Set application data dir.
const QString & getCompileInfo() const
Compile info.
void setPlatformInfo(const QString &platform)
Set platform.
IconIndex
Index for each icon, allows to send them via DBus, efficiently store them, etc.
Value class identifying a process, with a PID and a name.
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...