LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
util.h File Reference
#include "utilconfig.h"
#include <QString>
#include <QDir>
#include <QModelIndex>
#include <QtXml/QDomElement>
#include <QtDebug>
#include <interfaces/structures.h>
+ Include dependency graph for util.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 LeechCraft
 
 LeechCraft::Util
 

Functions

QString LeechCraft::Util::FromStdString (const std::string &str)
 An utility function that creates a QString from UTF8-encoded std::string. More...
 
UTIL_API QString LeechCraft::Util::GetAsBase64Src (const QImage &image)
 Returns the given image in a Base64-encoded form. More...
 
UTIL_API QString LeechCraft::Util::GetUserText (const Entity &entity)
 Return the user-readable representation of the entity. More...
 
UTIL_API QString LeechCraft::Util::MakePrettySize (qint64 sourceSize)
 Makes a formatted size from number. More...
 
UTIL_API QString LeechCraft::Util::MakePrettySizeShort (qint64 size)
 Converts a bytes count to a string representation with appropriately chosen units. More...
 
UTIL_API QString LeechCraft::Util::MakeTimeFromLong (ulong time)
 Makes a formatted time from number. More...
 
UTIL_API QTranslator * LeechCraft::Util::LoadTranslator (const QString &base, const QString &locale, const QString &prefix="leechcraft", const QString &appname="leechcraft")
 
UTIL_API QTranslator * LeechCraft::Util::InstallTranslator (const QString &base, const QString &prefix="leechcraft", const QString &appname="leechcraft")
 Loads and installs a translator. More...
 
UTIL_API QString LeechCraft::Util::GetLocaleName ()
 Returns the current locale name, like en_US. More...
 
UTIL_API QString LeechCraft::Util::GetInternetLocaleName (const QLocale &)
 
UTIL_API QString LeechCraft::Util::GetLanguage ()
 Returns the current language name. More...
 
UTIL_API QModelIndexList LeechCraft::Util::GetSummarySelectedRows (QObject *sender)
 
UTIL_API QAction * LeechCraft::Util::CreateSeparator (QObject *parent)
 Returns the action that is set to act as a separator. More...
 
UTIL_API QPixmap LeechCraft::Util::DrawOverlayText (QPixmap px, const QString &text, QFont font, const QPen &pen, const QBrush &brush)
 
template<typename TagGetter , typename TagSetter >
QDomElement LeechCraft::Util::GetElementForTags (const QStringList &tags, QDomNode &node, QDomDocument &document, const QString &elementName, TagGetter tagGetter, TagSetter tagSetter)
 Returns an element for a given tags list. More...