~mzanetti/unity8/fix-1648251

« back to all changes in this revision

Viewing changes to plugins/Utils/constants.h

  • Committer: Michael Zanetti
  • Date: 2016-12-01 12:20:34 UTC
  • mfrom: (2525.1.179 unity8)
  • Revision ID: michael.zanetti@canonical.com-20161201122034-cpvbf7webbhg2wph
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2015 Canonical Ltd.
 
2
 * Copyright 2015-2016 Canonical Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU Lesser General Public License as published by
14
14
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
*/
16
16
 
17
 
#ifndef CONSTANTS_H
18
 
#define CONSTANTS_H
 
17
#pragma once
19
18
 
20
19
#include <QObject>
21
20
 
30
29
{
31
30
    Q_OBJECT
32
31
    Q_PROPERTY(int indicatorValueTimeout READ indicatorValueTimeout CONSTANT)
 
32
    Q_PROPERTY(QString defaultWallpaper READ defaultWallpaper CONSTANT)
33
33
 
34
34
public:
35
35
    Constants(QObject *parent = 0);
36
36
 
37
37
    int indicatorValueTimeout() const { return m_indicatorValueTimeout; }
 
38
    QString defaultWallpaper() const { return m_defaultWallpaper; }
38
39
 
39
40
private:
40
41
    int m_indicatorValueTimeout;
 
42
    QString m_defaultWallpaper;
41
43
};
42
 
 
43
 
#endif