AntiMicroX
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes
AutoProfileWatcher Class Reference

Manages auto profile functionality. Allows for profiles to be associated with specific applications. More...

#include <autoprofilewatcher.h>

Inheritance diagram for AutoProfileWatcher:
[legend]
Collaboration diagram for AutoProfileWatcher:
[legend]

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 ()
 
AutoProfileInfogetDefaultAllProfile ()
 
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 AutoProfileWatchergetAutoProfileWatcherInstance ()
 

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

AntiMicroSettingssettings
 
QHash< QString, QList< AutoProfileInfo * > > appProfileAssignments
 
QHash< QString, QList< AutoProfileInfo * > > windowClassProfileAssignments
 
QHash< QString, QList< AutoProfileInfo * > > windowNameProfileAssignments
 
QHash< QString, AutoProfileInfo * > defaultProfileAssignments
 
AutoProfileInfoallDefaultInfo
 
QString currentApplication
 
QString currentAppWindowTitle
 
QSet< QString > uniqueIDSet
 

Static Private Attributes

static AutoProfileWatcher_instance = nullptr
 
static QTimer checkWindowTimer
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AutoProfileWatcher()

AutoProfileWatcher::AutoProfileWatcher ( AntiMicroSettings settings,
QObject *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ ~AutoProfileWatcher()

AutoProfileWatcher::~AutoProfileWatcher ( )

Member Function Documentation

◆ clearProfileAssignments()

void AutoProfileWatcher::clearProfileAssignments ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ convToUniqueIDAutoProfGroupSett()

void AutoProfileWatcher::convToUniqueIDAutoProfGroupSett ( QSettings *  sett,
QString  guidAutoProfSett,
QString  uniqueAutoProfSett 
)
protected
Here is the caller graph for this function:

◆ disconnectWindowTimer()

void AutoProfileWatcher::disconnectWindowTimer ( )
static
Here is the caller graph for this function:

◆ findAppLocation()

QString AutoProfileWatcher::findAppLocation ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ foundApplicableProfile

void AutoProfileWatcher::foundApplicableProfile ( AutoProfileInfo info)
signal
Here is the caller graph for this function:

◆ getAppProfileAssignments()

const QHash< QString, QList< AutoProfileInfo * > > & AutoProfileWatcher::getAppProfileAssignments ( )
Here is the caller graph for this function:

◆ getAutoProfileWatcherInstance()

AutoProfileWatcher * AutoProfileWatcher::getAutoProfileWatcherInstance ( )
static
Here is the caller graph for this function:

◆ getCustomDefaults()

QList< AutoProfileInfo * > * AutoProfileWatcher::getCustomDefaults ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDefaultAllProfile()

AutoProfileInfo * AutoProfileWatcher::getDefaultAllProfile ( )

◆ getDefaultProfileAssignments()

const QHash< QString, AutoProfileInfo * > & AutoProfileWatcher::getDefaultProfileAssignments ( )
Here is the caller graph for this function:

◆ getUniqeIDSetLocal()

QSet< QString > & AutoProfileWatcher::getUniqeIDSetLocal ( )
private
Here is the caller graph for this function:

◆ getWindowClassProfileAssignments()

const QHash< QString, QList< AutoProfileInfo * > > & AutoProfileWatcher::getWindowClassProfileAssignments ( )
Here is the caller graph for this function:

◆ getWindowNameProfileAssignments()

const QHash< QString, QList< AutoProfileInfo * > > & AutoProfileWatcher::getWindowNameProfileAssignments ( )
Here is the caller graph for this function:

◆ isUniqueIDLocked()

bool AutoProfileWatcher::isUniqueIDLocked ( QString  uniqueID)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runAppCheck

void AutoProfileWatcher::runAppCheck ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ startTimer()

void AutoProfileWatcher::startTimer ( )
Here is the caller graph for this function:

◆ stopTimer()

void AutoProfileWatcher::stopTimer ( )
Here is the caller graph for this function:

◆ syncProfileAssignment

void AutoProfileWatcher::syncProfileAssignment ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ _instance

AutoProfileWatcher * AutoProfileWatcher::_instance = nullptr
staticprivate

◆ allDefaultInfo

AutoProfileInfo* AutoProfileWatcher::allDefaultInfo
private

◆ appProfileAssignments

QHash<QString, QList<AutoProfileInfo *> > AutoProfileWatcher::appProfileAssignments
private

◆ CHECKTIME

const int AutoProfileWatcher::CHECKTIME = 500
static

◆ checkWindowTimer

QTimer AutoProfileWatcher::checkWindowTimer
staticprivate

◆ currentApplication

QString AutoProfileWatcher::currentApplication
private

◆ currentAppWindowTitle

QString AutoProfileWatcher::currentAppWindowTitle
private

◆ defaultProfileAssignments

QHash<QString, AutoProfileInfo *> AutoProfileWatcher::defaultProfileAssignments
private

◆ settings

AntiMicroSettings* AutoProfileWatcher::settings
private

◆ uniqueIDSet

QSet<QString> AutoProfileWatcher::uniqueIDSet
private

◆ windowClassProfileAssignments

QHash<QString, QList<AutoProfileInfo *> > AutoProfileWatcher::windowClassProfileAssignments
private

◆ windowNameProfileAssignments

QHash<QString, QList<AutoProfileInfo *> > AutoProfileWatcher::windowNameProfileAssignments
private

The documentation for this class was generated from the following files: