Qt 4.8
Public Functions | Public Variables | List of all members
QUIKitEventLoop Class Reference

#include <quikiteventloop.h>

Inheritance diagram for QUIKitEventLoop:
QPlatformEventLoopIntegration

Public Functions

void qtNeedsToProcessEvents ()
 
 QUIKitEventLoop ()
 
void quitEventLoop ()
 
void startEventLoop ()
 
 ~QUIKitEventLoop ()
 
- Public Functions inherited from QPlatformEventLoopIntegration
qint64 nextTimerEvent () const
 
 QPlatformEventLoopIntegration ()
 
void setNextTimerEvent (qint64 nextTimerEvent)
 
virtual ~QPlatformEventLoopIntegration ()
 

Public Variables

EventLoopHelpermHelper
 
QUIKitSoftwareInputHandlermInputHandler
 
NSTimer * mTimer
 

Additional Inherited Members

- Static Public Functions inherited from QPlatformEventLoopIntegration
static void processEvents ()
 
- Protected Variables inherited from QPlatformEventLoopIntegration
QScopedPointer< QPlatformEventLoopIntegrationPrivated_ptr
 

Detailed Description

Definition at line 55 of file quikiteventloop.h.

Constructors and Destructors

◆ QUIKitEventLoop()

QUIKitEventLoop::QUIKitEventLoop ( )

Definition at line 176 of file quikiteventloop.mm.

177 {
178  NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
180  mHelper = [[EventLoopHelper alloc] initWithEventLoopIntegration:this];
181  mTimer = [[NSTimer timerWithTimeInterval:0.030 target:mHelper selector:@selector(processEventsAndSchedule) userInfo:nil repeats:YES] retain];
182  [pool release];
183 }
static bool init
QUIKitSoftwareInputHandler * mInputHandler
EventLoopHelper * mHelper
static const QCssKnownValue repeats[NumKnownRepeats - 1]
Definition: qcssparser.cpp:316

◆ ~QUIKitEventLoop()

QUIKitEventLoop::~QUIKitEventLoop ( )

Definition at line 185 of file quikiteventloop.mm.

186 {
187  [mTimer release];
188  [mHelper release];
189  delete mInputHandler;
190 }
QUIKitSoftwareInputHandler * mInputHandler
EventLoopHelper * mHelper

Functions

◆ qtNeedsToProcessEvents()

void QUIKitEventLoop::qtNeedsToProcessEvents ( )
virtual

Implements QPlatformEventLoopIntegration.

Definition at line 206 of file quikiteventloop.mm.

207 {
208  [mHelper performSelectorOnMainThread:@selector(processEventsAndSchedule) withObject:nil waitUntilDone:NO];
209 }
EventLoopHelper * mHelper

◆ quitEventLoop()

void QUIKitEventLoop::quitEventLoop ( )
virtual

Implements QPlatformEventLoopIntegration.

Definition at line 201 of file quikiteventloop.mm.

202 {
203 
204 }

◆ startEventLoop()

void QUIKitEventLoop::startEventLoop ( )
virtual

Implements QPlatformEventLoopIntegration.

Definition at line 192 of file quikiteventloop.mm.

193 {
194  qApp->installEventFilter(mInputHandler);
195  NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
196  [[NSRunLoop currentRunLoop] addTimer:[mTimer autorelease] forMode:NSDefaultRunLoopMode];
197  UIApplicationMain(qApp->argc(), qApp->argv(), nil, @"QUIKitAppDelegate");
198  [pool release];
199 }
#define qApp
static bool init
QUIKitSoftwareInputHandler * mInputHandler

Properties

◆ mHelper

EventLoopHelper* QUIKitEventLoop::mHelper

Definition at line 65 of file quikiteventloop.h.

Referenced by qtNeedsToProcessEvents(), and ~QUIKitEventLoop().

◆ mInputHandler

QUIKitSoftwareInputHandler* QUIKitEventLoop::mInputHandler

Definition at line 67 of file quikiteventloop.h.

◆ mTimer

NSTimer* QUIKitEventLoop::mTimer

Definition at line 66 of file quikiteventloop.h.

Referenced by startEventLoop(), and ~QUIKitEventLoop().


The documentation for this class was generated from the following files: