1 /*
2  *  Copyright (c) 2018 Dmitry Kazakov <dimula73@gmail.com>
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; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #include "KoFakeProgressProxy.h"
20 
21 #include <QtGlobal>
22 #include <QGlobalStatic>
23 
Q_GLOBAL_STATIC(KoFakeProgressProxy,s_instance)24 Q_GLOBAL_STATIC(KoFakeProgressProxy, s_instance)
25 
26 
27 int KoFakeProgressProxy::maximum() const
28 {
29     return 100;
30 }
31 
setValue(int value)32 void KoFakeProgressProxy::setValue(int value)
33 {
34     Q_UNUSED(value);
35 }
36 
setRange(int minimum,int maximum)37 void KoFakeProgressProxy::setRange(int minimum, int maximum)
38 {
39     Q_UNUSED(minimum);
40     Q_UNUSED(maximum);
41 }
42 
setFormat(const QString & format)43 void KoFakeProgressProxy::setFormat(const QString &format)
44 {
45     Q_UNUSED(format);
46 }
47 
setAutoNestedName(const QString & name)48 void KoFakeProgressProxy::setAutoNestedName(const QString &name)
49 {
50     Q_UNUSED(name);
51 }
52 
instance()53 KoProgressProxy *KoFakeProgressProxy::instance()
54 {
55     return s_instance;
56 }
57