![]() |
AntiMicroX
|
Manages auto profile functionality. Allows for profiles to be associated with specific applications. More...
#include <autoprofilewatcher.h>
Public Slots | |
void | syncProfileAssignment () |
Signals | |
void | foundApplicableProfile (AutoProfileInfo *info) |
Public Member Functions | |
AutoProfileWatcher (AntiMicroSettings *settings, QObject *parent=nullptr) | |
~AutoProfileWatcher () | |
void | startTimer () |
void | stopTimer () |
QList< AutoProfileInfo * > * | getCustomDefaults () |
AutoProfileInfo * | getDefaultAllProfile () |
bool | isUniqueIDLocked (QString uniqueID) |
const QHash< QString, QList< AutoProfileInfo * > > & | getAppProfileAssignments () |
const QHash< QString, QList< AutoProfileInfo * > > & | getWindowClassProfileAssignments () |
const QHash< QString, QList< AutoProfileInfo * > > & | getWindowNameProfileAssignments () |
const QHash< QString, AutoProfileInfo * > & | getDefaultProfileAssignments () |
Static Public Member Functions | |
static void | disconnectWindowTimer () |
static AutoProfileWatcher * | getAutoProfileWatcherInstance () |
Static Public Attributes | |
static const int | CHECKTIME = 500 |
Protected Member Functions | |
QString | findAppLocation () |
void | clearProfileAssignments () |
void | convToUniqueIDAutoProfGroupSett (QSettings *sett, QString guidAutoProfSett, QString uniqueAutoProfSett) |
Private Slots | |
void | runAppCheck () |
Private Member Functions | |
QSet< QString > & | getUniqeIDSetLocal () |
Private Attributes | |
AntiMicroSettings * | settings |
QHash< QString, QList< AutoProfileInfo * > > | appProfileAssignments |
QHash< QString, QList< AutoProfileInfo * > > | windowClassProfileAssignments |
QHash< QString, QList< AutoProfileInfo * > > | windowNameProfileAssignments |
QHash< QString, AutoProfileInfo * > | defaultProfileAssignments |
AutoProfileInfo * | allDefaultInfo |
QString | currentApplication |
QString | currentAppWindowTitle |
QSet< QString > | uniqueIDSet |
Static Private Attributes | |
static AutoProfileWatcher * | _instance = nullptr |
static QTimer | checkWindowTimer |
Manages auto profile functionality. Allows for profiles to be associated with specific applications.
Watches currently focused window and changes current set to pre-defined one when app is recognized.
|
explicit |
AutoProfileWatcher::~AutoProfileWatcher | ( | ) |
|
protected |
|
protected |
|
static |
|
protected |
|
signal |
const QHash< QString, QList< AutoProfileInfo * > > & AutoProfileWatcher::getAppProfileAssignments | ( | ) |
|
static |
QList< AutoProfileInfo * > * AutoProfileWatcher::getCustomDefaults | ( | ) |
AutoProfileInfo * AutoProfileWatcher::getDefaultAllProfile | ( | ) |
const QHash< QString, AutoProfileInfo * > & AutoProfileWatcher::getDefaultProfileAssignments | ( | ) |
|
private |
const QHash< QString, QList< AutoProfileInfo * > > & AutoProfileWatcher::getWindowClassProfileAssignments | ( | ) |
const QHash< QString, QList< AutoProfileInfo * > > & AutoProfileWatcher::getWindowNameProfileAssignments | ( | ) |
bool AutoProfileWatcher::isUniqueIDLocked | ( | QString | uniqueID | ) |
|
privateslot |
void AutoProfileWatcher::startTimer | ( | ) |
void AutoProfileWatcher::stopTimer | ( | ) |
|
slot |
|
staticprivate |
|
private |
|
private |
|
static |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |