OpendTect  6.6
applicationdata.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: K. Tingdahl
8  Date: Aug 2014
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 Wrapper class around QCoreApplication
13 
14 -*/
15 
16 #include "basicmod.h"
17 #include "callback.h"
18 #include "thread.h"
19 
20 mFDQtclass(QCoreApplication);
21 class QEventLoopReceiver;
22 
23 
30 mExpClass(Basic) ApplicationData : public CallBacker
31 {
32 public:
33  ApplicationData();
37  ~ApplicationData();
38 
39  static bool hasInstance();
40 
41  static int exec();
43 
44  static void exit(int returncode);
46 
47  static bool isCommandAndCTRLSwapped();
49  static void swapCommandAndCTRL(bool);
50 
51  static void setOrganizationName(const char*);
52  static void setOrganizationDomain(const char*);
53  static void setApplicationName(const char*);
54  static BufferString applicationName();
55 protected:
56 
57  mQtclass(QCoreApplication)* application_;
58 
59 };
60 
61 
mFDQtclass
#define mFDQtclass(cls)
Definition: commondefs.h:233
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
callback.h
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
mQtclass
#define mQtclass(cls)
Definition: commondefs.h:234
thread.h

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021