source: lumina/libLumina/LuminaOS.h @ d0a927f

releng/10.0.3releng/10.1releng/10.1.1
Last change on this file since d0a927f was d0a927f, checked in by Ken Moore <ken@…>, 6 months ago

Also add a function to libLumina to modify the current audio volume by a particular amount (+/- difference)

  • Property mode set to 100644
File size: 1.1 KB
Line 
1//===========================================
2//  Lumina-DE source code
3//  Copyright (c) 2014, Ken Moore
4//  Available under the 3-clause BSD license
5//  See the LICENSE file for full details
6//===========================================
7#ifndef _LUMINA_LIBRARY_OS_H
8#define _LUMINA_LIBRARY_OS_H
9
10#include <QString>
11#include <QStringList>
12
13#include "LuminaUtils.h"
14
15class LOS{
16public:
17        //Scan for mounted external devices
18        static QStringList ExternalDevicePaths(); //Returns: QStringList[<type>::::<filesystem>::::<path>]
19          //Note: <type> = [USB, HDRIVE, DVD, SDCARD, UNKNOWN]
20
21        //Read screen brightness information
22        static int ScreenBrightness(); //Returns: Screen Brightness as a percentage (0-100, with -1 for errors)
23        //Set screen brightness
24        static void setScreenBrightness(int percent);
25
26        //Read the current volume
27        static int audioVolume(); //Returns: audio volume as a percentage (0-100, with -1 for errors)
28        //Set the current volume
29        static void setAudioVolume(int percent);
30        //Modify the current volume by a set amount (+ or -)
31        static void changeAudioVolume(int percentdiff);
32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.