Changed from config files from being user-centric to system. Some refactoring. Added install script

This commit is contained in:
amazing-username
2018-07-23 21:30:52 -04:00
parent 63ff22973b
commit 0777990b5e
11 changed files with 37 additions and 51 deletions
+5 -17
View File
@@ -6,32 +6,20 @@
class Volume
{
public:
Volume() { }
void setVolume(const unsigned short& volume) { this->volume = volume; }
Volume()
{
}
void setVolume(const unsigned short& volume)
{
this->volume = volume;
}
unsigned short getVolume() const
{
return volume;
}
unsigned short getVolume() const { return volume; }
void updateTheCurrentVolume();
virtual void updateVolume() = 0;
virtual void newVolume() = 0;
protected:
short volume;
std::string curVolumePath{"/usr/lib/AudioControl/currentvolume.txt"};
unsigned short volume;
unsigned short playBackOrigin = 0;
unsigned short playBackEnd = 127;
const unsigned short AFFECTAMOUNT = 13;
private:
};
#endif