qTox is a chat, voice, video, and file transfer IM client using the encrypted peer-to-peer Tox protocol.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
527 B

#ifndef SETTINGS_H
#define SETTINGS_H
#include <QString>
#ifdef Q_OS_WIN
#include <windows.h>
#endif
class Settings
{
public:
Settings();
~Settings();
QString getSettingsDirPath() const; ///< The returned path ends with a directory separator
#ifdef Q_OS_WIN
HANDLE getPrimaryToken() const; ///< Used to impersonnate the unelevated user
#endif
private:
bool portable;
static constexpr const char* SETTINGS_FILE = "qtox.ini";
#ifdef Q_OS_WIN
HANDLE hPrimaryToken;
#endif
};
#endif // SETTINGS_H