Changeset 44:f5222044879c in xplra for src/plugin/src/xplra/ListenThread.h
- Timestamp:
- 02/15/13 18:51:58 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/plugin/src/xplra/ListenThread.h
r38 r44 44 44 //------------------------------------------------------------------------------ 45 45 46 class MessageWindow;46 class Globals; 47 47 48 48 //------------------------------------------------------------------------------ … … 58 58 private: 59 59 /** 60 * The version of X-Plane.60 * The global objects. 61 61 */ 62 int xplaneVersion; 63 64 /** 65 * The version of the XPLM library. 66 */ 67 int xplmVersion; 68 69 /** 70 * The message window for showing messages. 71 */ 72 MessageWindow& messageWindow; 62 Globals& globals; 73 63 74 64 /** … … 92 82 * Construct the thread. 93 83 */ 94 ListenThread(int xplaneVersion, int xplmVersion, 95 MessageWindow& messageWindow); 84 ListenThread(Globals& globals); 96 85 97 86 /** 98 * Get the versions87 * Get the globals 99 88 */ 100 void getVersions(int& xplane, int& xplm) const; 101 102 /** 103 * Get the message window. 104 */ 105 MessageWindow& getMessageWindow(); 89 Globals& getGlobals(); 106 90 107 91 /** … … 120 104 //------------------------------------------------------------------------------ 121 105 122 inline ListenThread::ListenThread(int xplaneVersion, int xplmVersion, 123 MessageWindow& messageWindow) : 106 inline ListenThread::ListenThread(Globals& globals) : 124 107 Thread(true), 125 xplaneVersion(xplaneVersion), 126 xplmVersion(xplmVersion), 127 messageWindow(messageWindow), 108 globals(globals), 128 109 quitEvent(&waiter) 129 110 { … … 132 113 //------------------------------------------------------------------------------ 133 114 134 inline void ListenThread::getVersions(int& xplane, int& xplm) const115 inline Globals& ListenThread::getGlobals() 135 116 { 136 xplane = xplaneVersion; 137 xplm = xplmVersion; 138 } 139 140 //------------------------------------------------------------------------------ 141 142 inline MessageWindow& ListenThread::getMessageWindow() 143 { 144 return messageWindow; 117 return globals; 145 118 } 146 119
Note:
See TracChangeset
for help on using the changeset viewer.