32 #ifndef APPLICATIONBUNDLE_H
33 #define APPLICATIONBUNDLE_H
36 #include <QStringList>
108 QString
name()
const;
148 QIcon quadraticIcon(QIcon
icon)
const;
Represents an application bundle or executable in various formats.
Definition: ApplicationBundle.h:53
ApplicationBundle(const QString &path)
Constructs an ApplicationBundle object for the specified path.
Definition: ApplicationBundle.cpp:44
QStringList arguments() const
Retrieves the list of arguments passed to the executable.
Definition: ApplicationBundle.cpp:223
bool isValid() const
Checks if the application bundle is valid and exists.
Definition: ApplicationBundle.cpp:128
Type type() const
Returns the type of the application bundle.
Definition: ApplicationBundle.cpp:133
QString iconName() const
Retrieves the name of the icon file.
Definition: ApplicationBundle.cpp:206
QString m_path
Definition: ApplicationBundle.h:141
Type m_type
Definition: ApplicationBundle.h:143
QIcon icon() const
Retrieves the icon of the application bundle.
Definition: ApplicationBundle.cpp:138
bool isCommandLineTool() const
Checks if the application bundle is a command line tool.
Definition: ApplicationBundle.cpp:228
QString name() const
Retrieves the name of the application.
Definition: ApplicationBundle.cpp:213
QString path() const
Returns the path of the application bundle.
Definition: ApplicationBundle.cpp:123
bool launch(QStringList arguments) const
Launches the application.
Definition: ApplicationBundle.cpp:285
QStringList m_arguments
Definition: ApplicationBundle.h:147
QString m_icon
Definition: ApplicationBundle.h:145
bool m_isValid
Definition: ApplicationBundle.h:142
QString executable() const
Retrieves the path to the executable of the application.
Definition: ApplicationBundle.cpp:218
QString typeName() const
Gets the name of the type as a string.
Definition: ApplicationBundle.cpp:269
QString m_name
Definition: ApplicationBundle.h:144
Type
Enumerates the different types of application bundles.
Definition: ApplicationBundle.h:60
QString m_executable
Definition: ApplicationBundle.h:146
Definition: DesktopFile.h:50