bzr branch
/browse/iphone/tappity
| Line | Revision | Contents |
| 1 | 46 | // |
| 2 | // Tappity.h |
|
| 3 | // tappity |
|
| 4 | // |
|
| 5 | // Created by döme on 25.10.2009. |
|
| 6 | // |
|
| 7 | ||
| 8 | 54 | /* |
| 9 | * Copyright (c) 2009 Doemoetoer Gulyas. |
|
| 10 | * All rights reserved. |
|
| 11 | * |
|
| 12 | * Redistribution and use in source and binary forms, with or without |
|
| 13 | * modification, are permitted provided that the following conditions |
|
| 14 | * are met: |
|
| 15 | * 1. Redistributions of source code must retain the above copyright |
|
| 16 | * notice, this list of conditions and the following disclaimer. |
|
| 17 | * 2. Redistributions in binary form must reproduce the above copyright |
|
| 18 | * notice, this list of conditions and the following disclaimer in the |
|
| 19 | * documentation and/or other materials provided with the distribution. |
|
| 20 | * 3. The name of the author may not be used to endorse or promote products |
|
| 21 | * derived from this software without specific prior written permission. |
|
| 22 | * |
|
| 23 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
|
| 24 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
|
| 25 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
| 26 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
|
| 27 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
|
| 28 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
|
| 29 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
| 30 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
| 31 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
|
| 32 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
| 33 | */ |
|
| 34 | ||
| 35 | 46 | #import <Foundation/Foundation.h> |
| 36 | 49 | #import <UIKit/UIKit.h> |
| 37 | 52 | #import "SocketMessenger.h" |
| 38 | 49 | //#import "GraphicsServices.h" |
| 39 | 46 | |
| 40 | extern NSString* TapTouchesKey; |
|
| 41 | extern NSString* TapGSEventKey; |
|
| 42 | extern NSString* TapTouchPhaseKey; |
|
| 43 | extern NSString* TapRecordedEventKey; |
|
| 44 | 48 | extern NSString* TapAccelerationKey; |
| 45 | extern NSString* TapCompassKey; |
|
| 46 | extern NSString* TapLocationKey; |
|
| 47 | 61 | extern NSString* TapImageDataKey; |
| 48 | extern NSString* TapReferenceRectKey; |
|
| 49 | extern NSString* TapImageRectKey; |
|
| 50 | 46 | |
| 51 | enum |
|
| 52 | { |
|
| 53 | 52 | kTap_Placeholder, |
| 54 | 46 | kTapTouchEvent, |
| 55 | kTapTouchBegan, |
|
| 56 | kTapTouchMoved, |
|
| 57 | kTapTouchEnded, |
|
| 58 | kTapTouchCancelled, |
|
| 59 | kTapRecordedEvent, |
|
| 60 | 48 | kTapAcceleration, |
| 61 | kTapCompass, |
|
| 62 | kTapLocation, |
|
| 63 | 50 | kTapRawScreenshot, |
| 64 | kTapAccelerometerUpdateInterval, |
|
| 65 | kTapStartUpdatingLocation, |
|
| 66 | kTapStopUpdatingLocation, |
|
| 67 | kTapStartUpdatingHeading, |
|
| 68 | kTapStopUpdatingHeading, |
|
| 69 | 51 | kTapStartSendingVisualFeedback, |
| 70 | kTapStopSendingVisualFeedback, |
|
| 71 | 61 | kTapPlacedScreenshot, |
| 72 | 46 | kTap_ |
| 73 | }; |
|
| 74 | ||
| 75 | 49 | // void _printGSEvent(UIEvent* event); |
| 76 | 46 | |
| 77 | 48 | @interface UIAccelerometer (TappityPrivate) |
| 78 | - (void)_acceleratedInX:(double)arg1 y:(double)arg2 z:(double)arg3 timestamp:(double)arg4; |
|
| 79 | @end |
|
| 80 | ||
| 81 | 49 | @interface UIApplication (TappityPrivate) |
| 82 | - (void)_playbackEvents:(id)arg1 atPlaybackRate:(float)arg2 messageWhenDone:(id)arg3 withSelector:(SEL)arg4; |
|
| 83 | - (void)_addRecorder:(id)arg1; |
|
| 84 | @end |
|
| 85 | ||
| 86 | 52 | |
| 87 | ||
| 88 | @interface Tappity : SocketMessenger |
|
| 89 | 47 | { |
| 90 | 46 | } |
| 91 | ||
| 92 | @end |
Loggerhead 1.17 is a web-based interface for Bazaar branches