-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDietpi_Software.h
45 lines (43 loc) · 1.54 KB
/
Dietpi_Software.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
//-----------------------------------------------------------------
//-----------------------------------------------------------------
class Dietpi_Software
{
//-------------------------------------------------------------
public:
//---------------------------------------------------------
//General
int MAX_SOFTWARE_INDEX;
string* sSoftwareName;
string* sSoftwareDesc;
string* sSoftwareUrlDocs;
signed short* iSoftwareInstalledState;
signed short* iSoftwareCategoryIndex;
signed short* iSoftwareAvailableForHwModel;
signed short* iSoftwareAvailableForHwArch;
//Categories
int MAX_CATEGORY_INDEX_DIETPI;
int MAX_CATEGORY_INDEX_LINUX;
string* sCategoryDesc_DietPi;
string* sCategoryDesc_Linux;
//---------------------------------------------------------
//functions
void Create(void);
void Destroy(void);
void Update(void);
bool Install_Software(signed short index); //returns 1=success
bool Remove_Software(signed short index); //returns 1=success
bool Software_Installed(signed short index); //returns 1=yes
//---------------------------------------------------------
//constructors
Dietpi_Software(void);
~Dietpi_Software(void);
//---------------------------------------------------------
//-------------------------------------------------------------
private:
//---------------------------------------------------------
//functions
void ZeroData(void);
//---------------------------------------------------------
//-------------------------------------------------------------
};