-
Notifications
You must be signed in to change notification settings - Fork 0
/
registryeditor.h
31 lines (24 loc) · 792 Bytes
/
registryeditor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef REGISTRYEDITOR_H
#define REGISTRYEDITOR_H
#include <QObject>
class QStringList;
/*
Creates references to files in the registry.
Registry Editor hides the details about how the key is edited and that
the .exe is added to the shortcuts in order for them to work.
*/
class RegistryEditor : public QObject
{
Q_OBJECT
static const QString registryAppPath;
public:
explicit RegistryEditor(QObject *parent = 0);
bool isInRegistry(const QString& shortcut);
bool isMine(QString shortcut);
void addShortcut(const QString& shortcut, const QString& file);
void deleteShortcut(const QString& shortcut);
void removeAll(QStringList shortcutList);
void synchronizeRegistry();
static QString getShortcutAppPath();
};
#endif // REGISTRYEDITOR_H