aboutsummaryrefslogtreecommitdiff
path: root/util/fbautostart/include/dot_desktop.hh
diff options
context:
space:
mode:
Diffstat (limited to 'util/fbautostart/include/dot_desktop.hh')
-rw-r--r--util/fbautostart/include/dot_desktop.hh55
1 files changed, 55 insertions, 0 deletions
diff --git a/util/fbautostart/include/dot_desktop.hh b/util/fbautostart/include/dot_desktop.hh
new file mode 100644
index 0000000..c234061
--- /dev/null
+++ b/util/fbautostart/include/dot_desktop.hh
@@ -0,0 +1,55 @@
1/*
2 * dot_desktop.hh
3 *
4 * This file is part of the Fluxbox Autostart ( fbautostart )
5 * Utility.
6 *
7 * Copyright (C) 2011 by Paul Tagliamonte <paultag@ubuntu.com>
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a copy
10 * of this software and associated documentation files (the "Software"), to deal
11 * in the Software without restriction, including without limitation the rights
12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 * copies of the Software, and to permit persons to whom the Software is
14 * furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 * THE SOFTWARE.
26 *
27 */
28
29#ifndef _DOT_DESKTOP_H
30#define _DOT_DESKTOP_H ohai
31
32#include <vector>
33
34namespace fbautostart {
35 class dot_desktop_attr {
36 public:
37 std::string attr;
38 std::string value;
39 };
40
41 class dot_desktop {
42 protected:
43 std::vector<dot_desktop_attr *> * attr;
44 std::string file;
45 std::string id;
46 public:
47 dot_desktop( std::string s, std::string id );
48 void load();
49 std::string getAttr( std::string sx );
50 bool validate();
51 std::string getFile();
52 std::string getID();
53 };
54}
55#endif