~osomon/oxide/override-touchUngrabEvent

« back to all changes in this revision

Viewing changes to qt/core/api/oxideqglobal.h

  • Committer: Chris Coulson
  • Date: 2016-01-13 18:16:11 UTC
  • Revision ID: chris.coulson@canonical.com-20160113181611-vo55lgwngvcj9u1h
Various clean-ups in soon-to-be-public headers. Also, we rename header files based on whether they're going to be public or not

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
// License along with this library; if not, write to the Free Software
16
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17
17
 
18
 
#ifndef OXIDE_Q_GLOBAL
19
 
#define OXIDE_Q_GLOBAL
 
18
#ifndef OXIDE_QTCORE_GLOBAL
 
19
#define OXIDE_QTCORE_GLOBAL
20
20
 
21
 
#include <QString>
22
 
#include <QtGlobal>
 
21
#include <QtCore/QString>
 
22
#include <QtCore/QtGlobal>
23
23
 
24
24
QT_BEGIN_NAMESPACE
25
25
class QThread;
26
26
QT_END_NAMESPACE
27
27
 
28
 
enum Q_DECL_EXPORT OxideProcessModel {
 
28
#if defined(OXIDE_QTCORE_IMPLEMENTATION)
 
29
# define OXIDE_QTCORE_EXPORT Q_DECL_EXPORT
 
30
#else
 
31
# define OXIDE_QTCORE_EXPORT Q_DECL_IMPORT
 
32
#endif
 
33
 
 
34
enum OXIDE_QTCORE_EXPORT OxideProcessModel {
29
35
  OxideProcessModelMultiProcess, // Uses the default multiprocess model
30
36
  OxideProcessModelSingleProcess,
31
37
 
40
46
  OxideProcessModelSitePerProcess
41
47
};
42
48
 
43
 
Q_DECL_EXPORT QString oxideGetNSSDbPath();
44
 
Q_DECL_EXPORT void oxideSetNSSDbPath(const QString& path);
45
 
 
46
 
Q_DECL_EXPORT QThread* oxideGetIOThread();
47
 
 
48
 
Q_DECL_EXPORT OxideProcessModel oxideGetProcessModel();
49
 
Q_DECL_EXPORT void oxideSetProcessModel(OxideProcessModel model);
50
 
 
51
 
Q_DECL_EXPORT size_t oxideGetMaxRendererProcessCount();
52
 
Q_DECL_EXPORT void oxideSetMaxRendererProcessCount(size_t count);
53
 
 
54
 
#endif // OXIDE_Q_GLOBAL
 
49
OXIDE_QTCORE_EXPORT QString oxideGetNSSDbPath();
 
50
OXIDE_QTCORE_EXPORT void oxideSetNSSDbPath(const QString& path);
 
51
 
 
52
OXIDE_QTCORE_EXPORT QThread* oxideGetIOThread();
 
53
 
 
54
OXIDE_QTCORE_EXPORT OxideProcessModel oxideGetProcessModel();
 
55
OXIDE_QTCORE_EXPORT void oxideSetProcessModel(OxideProcessModel model);
 
56
 
 
57
OXIDE_QTCORE_EXPORT size_t oxideGetMaxRendererProcessCount();
 
58
OXIDE_QTCORE_EXPORT void oxideSetMaxRendererProcessCount(size_t count);
 
59
 
 
60
#endif // OXIDE_QTCORe_GLOBAL