~3v1n0/unity-2d/secondary-activate-support

« back to all changes in this revision

Viewing changes to libunity-2d-private/Unity2d/iconutilities.h

  • Committer: Marco Trevisan (Treviño)
  • Date: 2011-07-19 15:35:07 UTC
  • mfrom: (615.1.18 unity-2d)
  • Revision ID: mail@3v1n0.net-20110719153507-vw9w6hfhuezzll77
Merging with upstream...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2011 Canonical, Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#ifndef ICONUTILITIES_H
 
18
#define ICONUTILITIES_H
 
19
 
 
20
#include <QObject>
 
21
#include <QUrl>
 
22
#include <QSize>
 
23
#include <QVariant>
 
24
#include <QDeclarativeEngine>
 
25
 
 
26
class IconUtilities : public QObject
 
27
{
 
28
    Q_OBJECT
 
29
 
 
30
public :
 
31
    explicit IconUtilities(QDeclarativeEngine *engine);
 
32
 
 
33
    Q_INVOKABLE QList<QVariant> getColorsFromIcon(QUrl source, QSize size) const;
 
34
 
 
35
private:
 
36
    QDeclarativeEngine* m_engine;
 
37
};
 
38
 
 
39
#endif // ICONUTILITIES_H