LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
icolorthememanager.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11class QColor;
12
17class Q_DECL_EXPORT IColorThemeManager
18{
19public:
20 virtual ~IColorThemeManager () {}
21
36 virtual QColor GetQMLColor (const QByteArray& section, const QByteArray& key) = 0;
37
44 virtual QObject* GetQObject () = 0;
45protected:
52 virtual void themeChanged () = 0;
53};
54
55Q_DECLARE_INTERFACE (IColorThemeManager, "org.Deviant.LeechCraft.IColorThemeManager/1.0")
Proxy class to the color theme management engine.
virtual QObject * GetQObject()=0
Returns the manager as a QObject.
virtual QColor GetQMLColor(const QByteArray &section, const QByteArray &key)=0
Returns the color for the given QML section and key.
virtual void themeChanged()=0
Emitted after the color theme changes.