LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
util.h File Reference
#include <functional>
#include <optional>
#include <QFuture>
#include <QImage>
#include <interfaces/structures.h>
#include <interfaces/an/constants.h>
#include <interfaces/an/ianemitter.h>
#include <interfaces/core/icoreproxy.h>
#include "xpcconfig.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

 LC
 
 LC::Util
 

Typedefs

using LC::Util::LazyNotificationPixmap_t = std::function< std::optional< QFuture< QImage > >()>
 

Functions

Entity LC::Util::MakeAN (const QString &header, const QString &text, Priority priority, const QString &senderID, const QString &cat, const QString &type, const QString &id, const QStringList &visualPath, int delta=1, int count=0, const QString &fullText=QString(), const QString &extendedText=QString())
 Creates an Advanced Notifications-enabled notify entity. More...
 
Entity LC::Util::MakeANRule (const QString &title, const QString &senderID, const QString &category, const QStringList &types, AN::NotifyFlags flags=AN::NotifyNone, bool openConfiguration=false, const QList< QPair< QString, ANFieldValue >> &fields={})
 Creates an Entity defining an Advanced Notifications rule. More...
 
QList< QObject * > LC::Util::GetDataFilters (const QVariant &data, IEntityManager *manager)
 Returns the data filter plugins that can handle data. More...
 
UTIL_XPC_API Entity LC::Util::MakeEntity (const QVariant &entity, const QString &location, LC::TaskParameters tp, const QString &mime=QString())
 An utility function to make a Entity. More...
 
Entity LC::Util::MakeNotification (const QString &header, const QString &text, Priority priority)
 An utility function to make a Entity with notification. More...
 
Entity LC::Util::MakeANCancel (const Entity &event)
 Makes an event for canceling another Advanced Notifications event. More...
 
Entity LC::Util::MakeANCancel (const QString &senderId, const QString &eventId)
 Makes an event for canceling another Advanced Notifications event. More...
 
QVariant LC::Util::GetPersistentData (const QByteArray &key, const ICoreProxy_ptr &proxy)
 Returns persistent data stored under given key. More...
 
void LC::Util::SetJobHolderProgress (const QList< QStandardItem * > &row, qint64 done, qint64 total, const QString &text)
 Sets the progress values on the given row. More...
 
void LC::Util::SetJobHolderProgress (QStandardItem *item, qint64 done, qint64 total)
 Sets the done and total progress values on the given item. More...
 
void LC::Util::InitJobHolderRow (const QList< QStandardItem * > &row)