• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

superkaramba

  • superkaramba
  • src
themefile.h
1/****************************************************************************
2* themefile.h - Theme file handling
3*
4* Copyright (C) 2003 Hans Karlsson <karlsson.h@home.se>
5* Copyright (C) 2003-2004 Adam Geitgey <adam@rootnode.org>
6* Copyright (c) 2004 Petri Damstén <damu@iki.fi>
7*
8* This file is part of SuperKaramba.
9*
10* SuperKaramba is free software; you can redistribute it and/or modify
11* it under the terms of the GNU General Public License as published by
12* the Free Software Foundation; either version 2 of the License, or
13* (at your option) any later version.
14*
15* SuperKaramba is distributed in the hope that it will be useful,
16* but WITHOUT ANY WARRANTY; without even the implied warranty of
17* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18* GNU General Public License for more details.
19*
20* You should have received a copy of the GNU General Public License
21* along with SuperKaramba; if not, write to the Free Software
22* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23****************************************************************************/
24#ifndef THEMEFILE_H
25#define THEMEFILE_H
26
27#include <kurl.h>
28#include <tqstring.h>
29#include <tqcstring.h>
30#include <tqpixmap.h>
31#include <tqfile.h>
32#include <tqvaluevector.h>
33
34class LineParser;
35class TQTextStream;
36class ThemeLocale;
37class ZipFile;
38
42class ThemeFile
43{
44 public:
45 typedef TQValueVector<ThemeFile> List;
46
47 ThemeFile(const KURL& url = KURL());
48 ~ThemeFile();
49
50 bool isZipTheme() const { return m_zipTheme; };
51 const TQString& name() const { return m_name; };
52 const TQString& version() const { return m_version; };
53 const TQString& license() const { return m_license; };
54 const TQString& id() const { return m_id; };
55 const TQString& mo() const { return m_mo; };
56 const TQString& file() const { return m_file; };
57 const TQString& pythonModule() const { return m_python; };
58 bool pythonModuleExists() const;
59 const TQString& path() const { return m_path; };
60 const TQString& description() const { return m_description; };
61 const TQString& author() const { return m_author; };
62 const TQString& authorEmail() const { return m_authorEmail; };
63 const TQString& homepage() const { return m_homepage; };
64 TQPixmap icon() const;
65 bool exists() const;
66 bool isThemeFile(const TQString& filename) const;
67 bool isValid() const;
68 TQByteArray readThemeFile(const TQString& filename) const;
69 bool fileExists(const TQString& filename) const;
70 const ThemeLocale* locale() const { return m_locale; };
71 bool canUninstall() const;
72
73 bool set(const KURL& url);
74 bool open();
75 bool nextLine(LineParser& parser);
76 bool close();
77
78 static bool isZipFile(const TQString& filename);
79 static TQString canonicalFile(const TQString& file);
80
81 private:
82 void parseXml();
83 void mkdir(TQDir dir);
84
85 TQString m_path;
86 bool m_zipTheme;
87 TQString m_file;
88 TQString m_id;
89 TQString m_mo;
90 TQString m_name;
91 TQString m_theme;
92 TQString m_python;
93 TQString m_icon;
94 TQString m_version;
95 TQString m_license;
96 TQTextStream* m_stream;
97 TQByteArray m_ba;
98 TQFile m_fl;
99 TQString m_description;
100 TQString m_author;
101 TQString m_authorEmail;
102 TQString m_homepage;
103 ThemeLocale* m_locale;
104 ZipFile* m_zip;
105};
106
107#endif
LineParser
Definition: lineparser.h:34
ThemeFile
Definition: themefile.h:43

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.9.4
This website is maintained by Timothy Pearson.