Filer
Executable.h
Go to the documentation of this file.
1 #ifndef EXECUTABLE_H
2 #define EXECUTABLE_H
3 
4 #include <QString>
5 #include <QObject>
6 
12 class Executable : public QObject {
13  Q_OBJECT
14 public:
21  static bool isExecutable(const QString& path);
22 
29  static bool hasShebang(const QString& path);
30 
37  static bool hasShebangOrIsElf(const QString& path);
38 
45  static bool isElf(const QString& path);
46 
57  static bool askUserToMakeExecutable(const QString& path);
58 };
59 
60 #endif // EXECUTABLE_H
A class to provide utility methods related to ELF executables and interpreted scripts.
Definition: Executable.h:12
static bool isExecutable(const QString &path)
Definition: Executable.cpp:10
static bool isElf(const QString &path)
Definition: Executable.cpp:57
static bool askUserToMakeExecutable(const QString &path)
Ask the user if they want to make a file executable and perform the action if requested.
Definition: Executable.cpp:73
static bool hasShebang(const QString &path)
Definition: Executable.cpp:15
static bool hasShebangOrIsElf(const QString &path)
Definition: Executable.cpp:107