summaryrefslogtreecommitdiffstats
path: root/kcontrol/kfontinst/kfontinst/XConfig.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 17:25:42 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 17:25:42 -0600
commiteba183d4de47093c6e44a99c8d7fe313aa2834c9 (patch)
tree53f8d1a08bd16668cb9040b2aaf9a041314b2003 /kcontrol/kfontinst/kfontinst/XConfig.h
parentf537c21b68e08f649b1b297bce8f3904603137e0 (diff)
downloadtdebase-eba183d4de47093c6e44a99c8d7fe313aa2834c9.tar.gz
tdebase-eba183d4de47093c6e44a99c8d7fe313aa2834c9.zip
Fix FTBFS
Diffstat (limited to 'kcontrol/kfontinst/kfontinst/XConfig.h')
-rw-r--r--kcontrol/kfontinst/kfontinst/XConfig.h114
1 files changed, 0 insertions, 114 deletions
diff --git a/kcontrol/kfontinst/kfontinst/XConfig.h b/kcontrol/kfontinst/kfontinst/XConfig.h
deleted file mode 100644
index 127b243fa..000000000
--- a/kcontrol/kfontinst/kfontinst/XConfig.h
+++ /dev/null
@@ -1,114 +0,0 @@
-#ifndef __X_CONFIG_H__
-#define __X_CONFIG_H__
-
-////////////////////////////////////////////////////////////////////////////////
-//
-// Class Name : KFI::CXConfig
-// Author : Craig Drummond
-// Project : K Font Installer
-// Creation Date : 05/05/2001
-// Version : $Revision$ $Date$
-//
-////////////////////////////////////////////////////////////////////////////////
-//
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU General Public License
-// as published by the Free Software Foundation; either version 2
-// of the License, or (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-//
-////////////////////////////////////////////////////////////////////////////////
-// (C) Craig Drummond, 2001, 2002, 2003, 2004
-///////////////////////////////////////////////////////////////////////////////
-
-#include "Misc.h"
-#include <tqptrlist.h>
-#include <tqstring.h>
-#include <tqstringlist.h>
-#include <time.h>
-
-namespace KFI
-{
-
-class CFontEngine;
-
-class CXConfig
-{
- public:
-
- struct TPath
- {
- enum EType
- {
- DIR,
- FONT_SERVER,
- FONT_CONFIG
- };
-
- TPath(const TQString &d, bool u=false, EType t=DIR, bool o=true)
- : dir(DIR==t ? Misc::dirSyntax(d) : d), unscaled(u), orig(o), type(t) {}
-
- static EType getType(const TQString &d);
-
- TQString dir;
- bool unscaled,
- orig; // Was dir in file when read?
- EType type;
- };
-
- enum EType
- {
- XFS,
- X11
- };
-
- public:
-
- CXConfig(EType type, const TQString &file);
-
- static bool configureDir(const TQString &dir);
-
- bool ok() { return itsOk; }
- bool writable() { return itsWritable; }
- bool readConfig();
- bool writeConfig();
- bool madeChanges();
- void addPath(const TQString &dir, bool unscaled=false);
- bool inPath(TPath::EType type);
- bool xfsInPath() { return inPath(TPath::FONT_SERVER); }
- bool fcInPath() { return inPath(TPath::FONT_CONFIG); }
- void refreshPaths() { refreshPaths(XFS==itsType); }
- void restart();
- EType getType() { return itsType; }
-
- static void refreshPaths(bool xfs);
-
- private:
-
- bool processX11(bool read);
- bool processXfs(bool read);
-
- TPath * findPath(const TQString &dir);
-
- private:
-
- EType itsType;
- TQPtrList<TPath> itsPaths;
- TQString itsFileName,
- itsInsertPos;
- bool itsOk,
- itsWritable;
- time_t itsTime;
-};
-
-}
-
-#endif