mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-27 09:17:51 -05:00
45 lines
920 B
C++
45 lines
920 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
struct AutoStartInfo
|
|
{
|
|
std::string path;
|
|
std::string args;
|
|
std::string desc;
|
|
std::string icon;
|
|
std::string category;
|
|
};
|
|
|
|
class AutoStartInterface
|
|
{
|
|
public:
|
|
virtual bool DisableAutoStart() = 0;
|
|
virtual bool EnableAutoStart(AutoStartInfo autostart_info) = 0;
|
|
virtual bool IsAutoStartEnabled() = 0;
|
|
virtual std::string GetExePath() = 0;
|
|
|
|
std::string GetAutoStartFile();
|
|
std::string GetAutoStartName();
|
|
|
|
protected:
|
|
std::string autostart_file;
|
|
std::string autostart_name;
|
|
};
|
|
|
|
#ifdef _WIN32
|
|
#include "AutoStart-Windows.h"
|
|
#endif
|
|
|
|
#ifdef __linux__
|
|
#include "AutoStart-Linux.h"
|
|
#endif
|
|
|
|
#ifdef __APPLE__
|
|
#include "AutoStart-MacOS.h"
|
|
#endif
|
|
|
|
#ifdef __FreeBSD__
|
|
#include "AutoStart-FreeBSD.h"
|
|
#endif
|