You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

54 lines
767 B

#pragma once
/*
* SPDX-FileCopyrightText: 2003-2007 Craig Drummond <craig@kde.org>
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "Misc.h"
#include <QByteArray>
#include <QObject>
class QProcess;
namespace KFI
{
class CFcQuery : public QObject
{
Q_OBJECT
public:
CFcQuery(QObject *parent)
: QObject(parent)
, itsProc(nullptr)
{
}
~CFcQuery() override;
void run(const QString &query);
const QString &font() const
{
return itsFont;
}
const QString &file() const
{
return itsFile;
}
private Q_SLOTS:
void procExited();
void data();
Q_SIGNALS:
void finished();
private:
QProcess *itsProc;
QByteArray itsBuffer;
QString itsFile, itsFont;
};
}