Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / kcontrol / kfontinst / kcmfontinst / FcQuery.h
blob65dcc30b3d1504014669375113941fa92886a721
1 #ifndef __FC_QUERY_H__
2 #define __FC_QUERY_H__
4 /*
5 * KFontInst - KDE Font Installer
7 * Copyright 2003-2007 Craig Drummond <craig@kde.org>
9 * ----
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; see the file COPYING. If not, write to
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA.
27 #include <QtCore/QObject>
28 #include <QtCore/QByteArray>
29 #include "Misc.h"
31 class QProcess;
33 namespace KFI
36 class CFcQuery : public QObject
38 Q_OBJECT
40 public:
42 CFcQuery(QObject *parent) : QObject(parent), itsProc(NULL) { }
43 ~CFcQuery();
45 void run(const QString &query);
47 const QString & font() const { return itsFont; }
48 const QString & file() const { return itsFile; }
50 private Q_SLOTS:
52 void procExited();
53 void data();
55 Q_SIGNALS:
57 void finished();
59 private:
61 QProcess *itsProc;
62 QByteArray itsBuffer;
63 QString itsFile,
64 itsFont;
69 #endif