mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-22 01:59:58 +00:00
add Pony() call <3
helper and library refatoring
This commit is contained in:
@ -17,6 +17,8 @@
|
||||
|
||||
#include "controladaptor.h"
|
||||
|
||||
#include <QTextCodec>
|
||||
|
||||
#include "netctlhelper.h"
|
||||
#include "version.h"
|
||||
|
||||
@ -66,6 +68,19 @@ QString ControlAdaptor::LibraryDocs()
|
||||
}
|
||||
|
||||
|
||||
QString ControlAdaptor::Pony()
|
||||
{
|
||||
QString pony;
|
||||
QFile ponyFile(QString(":pinkiepie"));
|
||||
if (!ponyFile.open(QIODevice::ReadOnly))
|
||||
return pony;
|
||||
pony = QTextCodec::codecForMib(106)->toUnicode(ponyFile.readAll());
|
||||
ponyFile.close();
|
||||
|
||||
return pony;
|
||||
}
|
||||
|
||||
|
||||
QString ControlAdaptor::SecurityDocs()
|
||||
{
|
||||
return (QString(DOCS_PATH) + QString("netctl-gui-security-notes.html"));
|
||||
|
Reference in New Issue
Block a user