Subversion Repositories tpanel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
486 andreas 1
/*
2
 * Copyright (C) 2025 by Andreas Theofilu <andreas@theosys.at>
3
 *
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
8
 *
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program; if not, write to the Free Software Foundation,
16
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
17
 */
18
 
19
#ifndef TLAUNCHER_H
20
#define TLAUNCHER_H
21
 
22
#include <string>
23
#include <vector>
24
 
25
typedef struct APPDEF_t
26
{
27
    std::string name;
28
    std::vector<std::string> executeables;
29
}APPDEF_t;
30
 
31
class TLauncher
32
{
33
    public:
34
        static bool launch(const std::string& name);
35
 
36
    protected:
37
        static void initialize();
38
 
39
    private:
40
        TLauncher() {};     // Should never be called directly!
41
        static bool mInitialized;
42
        static std::vector<APPDEF_t> APPS;
43
};
44
 
45
#endif // TLAUNCHER_H