Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit 65e06bf

Browse files
committed
Initial commit
0 parents  commit 65e06bf

37 files changed

Lines changed: 2122 additions & 0 deletions

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tmp
2+
bin
3+
build
4+
*.zip

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "DAKeyboardControl"]
2+
path = DAKeyboardControl
3+
url = git@github.com:danielamitay/DAKeyboardControl.git

.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>TiDAKeyboardControl</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.appcelerator.titanium.core.builder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.aptana.ide.core.unifiedBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>com.appcelerator.titanium.mobile.module.nature</nature>
21+
<nature>com.aptana.projects.webnature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
selectUserAgents=com.appcelerator.titanium.mobile.module.nature\:iphone

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Place your change log text here. This file will be incorporated with your app at package time.

Classes/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ItSmcDakeyboardcontrol.h
2+
ItSmcDakeyboardcontrol.m
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Copyright (c) 2014 SMC Treviso s.r.l. All rights reserved.
3+
*
4+
* This library is free software; you can redistribute it and/or modify it under
5+
* the terms of the GNU Lesser General Public License as published by the Free
6+
* Software Foundation; either version 2.1 of the License, or (at your option)
7+
* any later version.
8+
*
9+
* This library is distributed in the hope that it will be useful, but WITHOUT
10+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11+
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12+
* details.
13+
*
14+
* Appcelerator Titanium is Copyright (c) 2009-2010 by Appcelerator, Inc.
15+
* and licensed under the Apache Public License (version 2)
16+
*/
17+
18+
#import "TiModule.h"
19+
20+
@interface ItSmcDakeyboardcontrolModule : TiModule
21+
{
22+
}
23+
24+
@end
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
/**
2+
* Copyright (c) 2014 SMC Treviso s.r.l. All rights reserved.
3+
*
4+
* This library is free software; you can redistribute it and/or modify it under
5+
* the terms of the GNU Lesser General Public License as published by the Free
6+
* Software Foundation; either version 2.1 of the License, or (at your option)
7+
* any later version.
8+
*
9+
* This library is distributed in the hope that it will be useful, but WITHOUT
10+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11+
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12+
* details.
13+
*
14+
* Appcelerator Titanium is Copyright (c) 2009-2010 by Appcelerator, Inc.
15+
* and licensed under the Apache Public License (version 2)
16+
*/
17+
18+
#import "ItSmcDakeyboardcontrolModule.h"
19+
#import "TiBase.h"
20+
#import "TiHost.h"
21+
#import "TiUtils.h"
22+
23+
@implementation ItSmcDakeyboardcontrolModule
24+
25+
#pragma mark Internal
26+
27+
// this is generated for your module, please do not change it
28+
-(id)moduleGUID
29+
{
30+
return @"1d7767b0-9492-466b-ac7d-7a0d593eec42";
31+
}
32+
33+
// this is generated for your module, please do not change it
34+
-(NSString*)moduleId
35+
{
36+
return @"it.smc.dakeyboardcontrol";
37+
}
38+
39+
#pragma mark Lifecycle
40+
41+
-(void)startup
42+
{
43+
// this method is called when the module is first loaded
44+
// you *must* call the superclass
45+
[super startup];
46+
47+
NSLog(@"[INFO] %@ loaded",self);
48+
}
49+
50+
-(void)shutdown:(id)sender
51+
{
52+
// this method is called when the module is being unloaded
53+
// typically this is during shutdown. make sure you don't do too
54+
// much processing here or the app will be quit forceably
55+
56+
// you *must* call the superclass
57+
[super shutdown:sender];
58+
}
59+
60+
#pragma mark Cleanup
61+
62+
-(void)dealloc
63+
{
64+
// release any resources that have been retained by the module
65+
[super dealloc];
66+
}
67+
68+
#pragma mark Internal Memory Management
69+
70+
-(void)didReceiveMemoryWarning:(NSNotification*)notification
71+
{
72+
// optionally release any resources that can be dynamically
73+
// reloaded once memory is available - such as caches
74+
[super didReceiveMemoryWarning:notification];
75+
}
76+
77+
#pragma mark Listener Notifications
78+
79+
-(void)_listenerAdded:(NSString *)type count:(int)count
80+
{
81+
if (count == 1 && [type isEqualToString:@"my_event"])
82+
{
83+
// the first (of potentially many) listener is being added
84+
// for event named 'my_event'
85+
}
86+
}
87+
88+
-(void)_listenerRemoved:(NSString *)type count:(int)count
89+
{
90+
if (count == 0 && [type isEqualToString:@"my_event"])
91+
{
92+
// the last listener called for event named 'my_event' has
93+
// been removed, we can optionally clean up any resources
94+
// since no body is listening at this point for that event
95+
}
96+
}
97+
98+
#pragma Public APIs
99+
100+
-(id)example:(id)args
101+
{
102+
// example method
103+
return @"hello world";
104+
}
105+
106+
-(id)exampleProp
107+
{
108+
// example property getter
109+
return @"hello world";
110+
}
111+
112+
-(void)setExampleProp:(id)value
113+
{
114+
// example property setter
115+
}
116+
117+
@end
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Copyright (c) 2014 SMC Treviso s.r.l. All rights reserved.
3+
*
4+
* This library is free software; you can redistribute it and/or modify it under
5+
* the terms of the GNU Lesser General Public License as published by the Free
6+
* Software Foundation; either version 2.1 of the License, or (at your option)
7+
* any later version.
8+
*
9+
* This library is distributed in the hope that it will be useful, but WITHOUT
10+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11+
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12+
* details.
13+
*
14+
* Appcelerator Titanium is Copyright (c) 2009-2010 by Appcelerator, Inc.
15+
* and licensed under the Apache Public License (version 2)
16+
*/
17+
18+
@interface ItSmcDakeyboardcontrolModuleAssets : NSObject
19+
{
20+
}
21+
- (NSData*) moduleAsset;
22+
- (NSData*) resolveModuleAsset:(NSString*)path;
23+
24+
@end
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* Copyright (c) 2014 SMC Treviso s.r.l. All rights reserved.
3+
*
4+
* This library is free software; you can redistribute it and/or modify it under
5+
* the terms of the GNU Lesser General Public License as published by the Free
6+
* Software Foundation; either version 2.1 of the License, or (at your option)
7+
* any later version.
8+
*
9+
* This library is distributed in the hope that it will be useful, but WITHOUT
10+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11+
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12+
* details.
13+
*
14+
* Appcelerator Titanium is Copyright (c) 2009-2010 by Appcelerator, Inc.
15+
* and licensed under the Apache Public License (version 2)
16+
*/
17+
18+
#import "ItSmcDakeyboardcontrolModuleAssets.h"
19+
20+
extern NSData* filterDataInRange(NSData* thedata, NSRange range);
21+
22+
@implementation ItSmcDakeyboardcontrolModuleAssets
23+
24+
- (NSData*) moduleAsset
25+
{
26+
//##TI_AUTOGEN_BEGIN asset
27+
//Compiler generates code for asset here
28+
return nil; // DEFAULT BEHAVIOR
29+
//##TI_AUTOGEN_END asset
30+
}
31+
32+
- (NSData*) resolveModuleAsset:(NSString*)path
33+
{
34+
//##TI_AUTOGEN_BEGIN resolve_asset
35+
//Compiler generates code for asset resolution here
36+
return nil; // DEFAULT BEHAVIOR
37+
//##TI_AUTOGEN_END resolve_asset
38+
}
39+
40+
@end

0 commit comments

Comments
 (0)