TemplateInfo 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (226) hide show
  1. data/.DS_Store +0 -0
  2. data/.gitignore +2 -0
  3. data/TemplateInfo.gemspec +1 -1
  4. data/bin/tif_create.rb +157 -0
  5. data/lib/TemplateInfo/version.rb +1 -1
  6. data/test.xctemplate/.DS_Store +0 -0
  7. data/test.xctemplate/TemplateInfo.plist +2830 -0
  8. data/test.xctemplate/TemplateInfo.xml +2842 -0
  9. data/test.xctemplate/libs/BeeFramework/Bee.h +35 -0
  10. data/test.xctemplate/libs/BeeFramework/Bee_Precompile.h +143 -0
  11. data/test.xctemplate/libs/BeeFramework/Core/Bee_Core.h +36 -0
  12. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Foundation.h +54 -0
  13. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Foundation.mm +33 -0
  14. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Log.h +64 -0
  15. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Log.mm +164 -0
  16. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Performance.h +111 -0
  17. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Performance.mm +122 -0
  18. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Runtime.h +98 -0
  19. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Runtime.mm +437 -0
  20. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Sandbox.h +45 -0
  21. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Sandbox.mm +81 -0
  22. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Singleton.h +47 -0
  23. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Singleton.mm +34 -0
  24. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_SystemInfo.h +62 -0
  25. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_SystemInfo.m +147 -0
  26. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Thread.h +64 -0
  27. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Thread.mm +91 -0
  28. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSArray+BeeExtension.h +76 -0
  29. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSArray+BeeExtension.m +300 -0
  30. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSData+BeeExtension.h +44 -0
  31. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSData+BeeExtension.m +92 -0
  32. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDate+BeeExtension.h +44 -0
  33. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDate+BeeExtension.m +85 -0
  34. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDictionary+BeeExtension.h +90 -0
  35. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDictionary+BeeExtension.m +509 -0
  36. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSNumber+BeeExtension.h +50 -0
  37. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSNumber+BeeExtension.m +64 -0
  38. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeJSON.h +43 -0
  39. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeJSON.m +116 -0
  40. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeNotification.h +66 -0
  41. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeNotification.m +150 -0
  42. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeProperty.h +210 -0
  43. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeProperty.m +34 -0
  44. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTicker.h +41 -0
  45. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTicker.m +156 -0
  46. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTypeConversion.h +49 -0
  47. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTypeConversion.m +109 -0
  48. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSString+BeeExtension.h +86 -0
  49. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSString+BeeExtension.m +464 -0
  50. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Network.h +36 -0
  51. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Network.m +33 -0
  52. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Request.h +144 -0
  53. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Request.m +560 -0
  54. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_RequestQueue.h +99 -0
  55. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_RequestQueue.m +742 -0
  56. data/test.xctemplate/libs/BeeFramework/Core/Network/Extension/NSObject+BeeRequest.h +62 -0
  57. data/test.xctemplate/libs/BeeFramework/Core/Network/Extension/NSObject+BeeRequest.m +175 -0
  58. data/test.xctemplate/libs/BeeFramework/Core/Storage/0.2.4.zip +0 -0
  59. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveBase.h +133 -0
  60. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveBase.m +641 -0
  61. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveRecord.h +106 -0
  62. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveRecord.m +1956 -0
  63. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Cache.h +91 -0
  64. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Cache.m +318 -0
  65. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Database.h +223 -0
  66. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Database.m +3007 -0
  67. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Keychain.h +55 -0
  68. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Keychain.m +173 -0
  69. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Storage.h +39 -0
  70. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Storage.m +33 -0
  71. data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeDatabase.h +47 -0
  72. data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeDatabase.m +81 -0
  73. data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeKeychain.h +44 -0
  74. data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeKeychain.m +57 -0
  75. data/test.xctemplate/libs/BeeFramework/MVC/Bee_MVC.h +49 -0
  76. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Controller.h +66 -0
  77. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Controller.mm +228 -0
  78. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Message.h +209 -0
  79. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Message.mm +873 -0
  80. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_MessageQueue.h +75 -0
  81. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_MessageQueue.mm +389 -0
  82. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+ActiveRecord.h +52 -0
  83. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+ActiveRecord.m +150 -0
  84. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+HTTP.h +49 -0
  85. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+HTTP.mm +201 -0
  86. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+JSON.h +52 -0
  87. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+JSON.mm +118 -0
  88. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+XML.h +49 -0
  89. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+XML.mm +78 -0
  90. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/NSObject+BeeMessage.h +57 -0
  91. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/NSObject+BeeMessage.mm +138 -0
  92. data/test.xctemplate/libs/BeeFramework/MVC/Model/Bee_Model.h +64 -0
  93. data/test.xctemplate/libs/BeeFramework/MVC/Model/Bee_Model.m +190 -0
  94. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActionSheet.h +71 -0
  95. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActionSheet.m +307 -0
  96. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActivityIndicatorView.h +52 -0
  97. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActivityIndicatorView.m +152 -0
  98. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIAlertView.h +73 -0
  99. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIAlertView.m +234 -0
  100. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIButton.h +97 -0
  101. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIButton.m +424 -0
  102. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIDatePicker.h +78 -0
  103. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIDatePicker.m +362 -0
  104. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIGridCell.h +82 -0
  105. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIGridCell.m +298 -0
  106. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIImageView.h +110 -0
  107. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIImageView.m +541 -0
  108. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIKeyboard.h +74 -0
  109. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIKeyboard.m +243 -0
  110. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UILabel.h +46 -0
  111. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UILabel.m +99 -0
  112. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIMatrixView.h +124 -0
  113. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIMatrixView.m +821 -0
  114. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UINavigationBar.h +57 -0
  115. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UINavigationBar.m +161 -0
  116. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIOrientation.h +60 -0
  117. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIOrientation.m +146 -0
  118. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPageControl.h +61 -0
  119. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPageControl.m +190 -0
  120. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIProgressView.h +47 -0
  121. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIProgressView.m +113 -0
  122. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPullLoader.h +71 -0
  123. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPullLoader.m +236 -0
  124. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIScrollView.h +146 -0
  125. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIScrollView.m +1487 -0
  126. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISegmentedControl.h +60 -0
  127. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISegmentedControl.m +192 -0
  128. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISignal.h +126 -0
  129. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISignal.m +453 -0
  130. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITabBar.h +70 -0
  131. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITabBar.m +249 -0
  132. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextField.h +67 -0
  133. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextField.m +242 -0
  134. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextView.h +75 -0
  135. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextView.m +311 -0
  136. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITipsView.h +184 -0
  137. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITipsView.m +911 -0
  138. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIWebView.h +65 -0
  139. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIWebView.m +242 -0
  140. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIZoomView.h +91 -0
  141. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIZoomView.m +444 -0
  142. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_View.h +72 -0
  143. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_View.m +38 -0
  144. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/CGRect+BeeExtension.h +79 -0
  145. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/CGRect+BeeExtension.m +288 -0
  146. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIColor+BeeExtension.h +65 -0
  147. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIColor+BeeExtension.m +161 -0
  148. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIFont+BeeExtension.h +45 -0
  149. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIFont+BeeExtension.m +137 -0
  150. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIImage+BeeExtension.h +56 -0
  151. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIImage+BeeExtension.m +218 -0
  152. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeExtension.h +105 -0
  153. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeExtension.m +556 -0
  154. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeUISignal.h +53 -0
  155. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeUISignal.m +104 -0
  156. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+HoldGesture.h +52 -0
  157. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+HoldGesture.m +170 -0
  158. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+PanGesture.h +54 -0
  159. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+PanGesture.m +166 -0
  160. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+SwipeGesture.h +54 -0
  161. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+SwipeGesture.m +184 -0
  162. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+TapGesture.h +57 -0
  163. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+TapGesture.m +275 -0
  164. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIBoard.h +212 -0
  165. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIBoard.m +1219 -0
  166. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStack.h +111 -0
  167. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStack.m +694 -0
  168. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStackGroup.h +71 -0
  169. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStackGroup.m +258 -0
  170. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_ViewController.h +45 -0
  171. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_ViewController.m +36 -0
  172. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeExtension.h +57 -0
  173. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeExtension.m +151 -0
  174. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeUISignal.h +53 -0
  175. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeUISignal.m +92 -0
  176. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+UINavigationBar.h +72 -0
  177. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+UINavigationBar.m +175 -0
  178. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UICollection.h +59 -0
  179. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UICollection.m +249 -0
  180. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UILayout.h +199 -0
  181. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UILayout.m +1170 -0
  182. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIQuery.h +113 -0
  183. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIQuery.m +710 -0
  184. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIStyle.h +66 -0
  185. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIStyle.m +189 -0
  186. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplate.h +69 -0
  187. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplate.m +210 -0
  188. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateAndroid.h +45 -0
  189. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateAndroid.m +59 -0
  190. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateHTML.h +45 -0
  191. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateHTML.m +55 -0
  192. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateJSON.h +45 -0
  193. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateJSON.m +54 -0
  194. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateOmniGraffle.h +45 -0
  195. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateOmniGraffle.m +54 -0
  196. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateXML.h +45 -0
  197. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateXML.m +438 -0
  198. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_ViewLayout.h +60 -0
  199. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_ViewLayout.m +37 -0
  200. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIQuery+BeeUIStyle.h +45 -0
  201. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIQuery+BeeUIStyle.m +55 -0
  202. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIStyle+BeeUIQuery.h +45 -0
  203. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIStyle+BeeUIQuery.m +55 -0
  204. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIButton+BeeUIStyle.h +41 -0
  205. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIButton+BeeUIStyle.m +100 -0
  206. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIImageView+BeeUIStyle.h +41 -0
  207. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIImageView+BeeUIStyle.m +101 -0
  208. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UILabel+BeeUIStyle.h +41 -0
  209. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UILabel+BeeUIStyle.m +48 -0
  210. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextField+BeeUIStyle.h +41 -0
  211. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextField+BeeUIStyle.m +77 -0
  212. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextView+BeeUIStyle.h +41 -0
  213. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextView+BeeUIStyle.m +47 -0
  214. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUILayout.h +52 -0
  215. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUILayout.m +177 -0
  216. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIQuery.h +44 -0
  217. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIQuery.m +57 -0
  218. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIStyle.h +50 -0
  219. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIStyle.m +283 -0
  220. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUILayout.h +52 -0
  221. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUILayout.m +178 -0
  222. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIQuery.h +44 -0
  223. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIQuery.m +58 -0
  224. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIStyle.h +44 -0
  225. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIStyle.m +57 -0
  226. metadata +226 -3
@@ -0,0 +1,91 @@
1
+ //
2
+ // ______ ______ ______
3
+ // /\ __ \ /\ ___\ /\ ___\
4
+ // \ \ __< \ \ __\_ \ \ __\_
5
+ // \ \_____\ \ \_____\ \ \_____\
6
+ // \/_____/ \/_____/ \/_____/
7
+ //
8
+ // Copyright (c) 2012 BEE creators
9
+ // http://www.whatsbug.com
10
+ //
11
+ // Permission is hereby granted, free of charge, to any person obtaining a
12
+ // copy of this software and associated documentation files (the "Software"),
13
+ // to deal in the Software without restriction, including without limitation
14
+ // the rights to use, copy, modify, merge, publish, distribute, sublicense,
15
+ // and/or sell copies of the Software, and to permit persons to whom the
16
+ // Software is furnished to do so, subject to the following conditions:
17
+ //
18
+ // The above copyright notice and this permission notice shall be included in
19
+ // all copies or substantial portions of the Software.
20
+ //
21
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
+ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
27
+ // IN THE SOFTWARE.
28
+ //
29
+ //
30
+ // Bee_Cache.h
31
+ //
32
+
33
+ #import "Bee_Precompile.h"
34
+ #import "Bee_Singleton.h"
35
+
36
+ #pragma mark -
37
+
38
+ @protocol BeeCacheProtocol<NSObject>
39
+
40
+ - (BOOL)hasCached:(NSString *)key;
41
+
42
+ - (NSData *)dataForKey:(NSString *)key;
43
+ - (NSObject *)objectForKey:(NSString *)key;
44
+
45
+ - (void)saveData:(NSData *)data forKey:(NSString *)key;
46
+ - (void)saveObject:(NSObject *)object forKey:(NSString *)key;
47
+
48
+ - (void)deleteKey:(NSString *)key;
49
+ - (void)deleteAll;
50
+
51
+ @end
52
+
53
+ #pragma mark -
54
+
55
+ @interface BeeFileCache : NSObject<BeeCacheProtocol>
56
+ {
57
+ NSString * _cachePath;
58
+ NSString * _cacheUser;
59
+ }
60
+
61
+ @property (nonatomic, retain) NSString * cachePath;
62
+ @property (nonatomic, retain) NSString * cacheUser;
63
+
64
+ AS_SINGLETON( BeeFileCache );
65
+
66
+ - (NSString *)cacheFileName:(NSString *)key;
67
+ - (NSData *)serialize:(id)obj;
68
+ - (id)unserialize:(NSData *)data;
69
+
70
+ @end
71
+
72
+ #pragma mark -
73
+
74
+ @interface BeeMemoryCache : NSObject<BeeCacheProtocol>
75
+ {
76
+ BOOL _clearWhenMemoryLow;
77
+ NSUInteger _maxCacheCount;
78
+ NSUInteger _cachedCount;
79
+ NSMutableArray * _cacheKeys;
80
+ NSMutableDictionary * _cacheObjs;
81
+ }
82
+
83
+ @property (nonatomic, assign) BOOL clearWhenMemoryLow;
84
+ @property (nonatomic, assign) NSUInteger maxCacheCount;
85
+ @property (nonatomic, assign) NSUInteger cachedCount;
86
+ @property (nonatomic, retain) NSMutableArray * cacheKeys;
87
+ @property (nonatomic, retain) NSMutableDictionary * cacheObjs;
88
+
89
+ AS_SINGLETON( BeeMemoryCache );
90
+
91
+ @end
@@ -0,0 +1,318 @@
1
+ //
2
+ // ______ ______ ______
3
+ // /\ __ \ /\ ___\ /\ ___\
4
+ // \ \ __< \ \ __\_ \ \ __\_
5
+ // \ \_____\ \ \_____\ \ \_____\
6
+ // \/_____/ \/_____/ \/_____/
7
+ //
8
+ // Copyright (c) 2012 BEE creators
9
+ // http://www.whatsbug.com
10
+ //
11
+ // Permission is hereby granted, free of charge, to any person obtaining a
12
+ // copy of this software and associated documentation files (the "Software"),
13
+ // to deal in the Software without restriction, including without limitation
14
+ // the rights to use, copy, modify, merge, publish, distribute, sublicense,
15
+ // and/or sell copies of the Software, and to permit persons to whom the
16
+ // Software is furnished to do so, subject to the following conditions:
17
+ //
18
+ // The above copyright notice and this permission notice shall be included in
19
+ // all copies or substantial portions of the Software.
20
+ //
21
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
+ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
27
+ // IN THE SOFTWARE.
28
+ //
29
+ //
30
+ // Bee_Cache.m
31
+ //
32
+
33
+ #import "Bee_Precompile.h"
34
+ #import "Bee_Singleton.h"
35
+ #import "Bee_SystemInfo.h"
36
+ #import "Bee_Sandbox.h"
37
+ #import "Bee_Cache.h"
38
+ #import "Bee_Log.h"
39
+
40
+ #import "NSObject+BeeNotification.h"
41
+ #import "JSONKit.h"
42
+
43
+ #pragma mark -
44
+
45
+ #define DEFAULT_MAX_COUNT (48)
46
+
47
+ #pragma mark -
48
+
49
+ @interface BeeFileCache(Private)
50
+ - (NSString *)cacheFileName:(NSString *)uniqueID;
51
+ @end
52
+
53
+ #pragma mark -
54
+
55
+ @implementation BeeFileCache
56
+
57
+ @synthesize cachePath = _cachePath;
58
+ @synthesize cacheUser = _cacheUser;
59
+
60
+ DEF_SINGLETON( BeeFileCache );
61
+
62
+ - (id)init
63
+ {
64
+ self = [super init];
65
+ if ( self )
66
+ {
67
+ self.cacheUser = @"";
68
+ // self.cachePath = [NSString stringWithFormat:@"%@/%@/cache/", [BeeSandbox libCachePath], [BeeSystemInfo appVersion]];
69
+ self.cachePath = [NSString stringWithFormat:@"%@/BeeCache/", [BeeSandbox libCachePath]];
70
+ }
71
+ return self;
72
+ }
73
+
74
+ - (void)dealloc
75
+ {
76
+ [NSObject cancelPreviousPerformRequestsWithTarget:self];
77
+
78
+ self.cachePath = nil;
79
+ self.cacheUser = nil;
80
+
81
+ [super dealloc];
82
+ }
83
+
84
+ - (NSString *)cacheFileName:(NSString *)key
85
+ {
86
+ NSString * pathName = nil;
87
+ if ( self.cacheUser && [self.cacheUser length] )
88
+ {
89
+ pathName = [self.cachePath stringByAppendingFormat:@"%@/", self.cacheUser];
90
+ }
91
+ else
92
+ {
93
+ pathName = self.cachePath;
94
+ }
95
+
96
+ if ( NO == [[NSFileManager defaultManager] fileExistsAtPath:pathName] )
97
+ {
98
+ [[NSFileManager defaultManager] createDirectoryAtPath:pathName
99
+ withIntermediateDirectories:YES
100
+ attributes:nil
101
+ error:NULL];
102
+ }
103
+
104
+ return [pathName stringByAppendingString:key];
105
+ }
106
+
107
+ - (BOOL)hasCached:(NSString *)key
108
+ {
109
+ return [[NSFileManager defaultManager] fileExistsAtPath:[self cacheFileName:key]];
110
+ }
111
+
112
+ - (NSData *)dataForKey:(NSString *)key
113
+ {
114
+ CC( @"load cache, %@", key );
115
+
116
+ NSString * filePath = [self cacheFileName:key];
117
+ return [NSData dataWithContentsOfFile:filePath];
118
+ }
119
+
120
+ - (void)saveData:(NSData *)data forKey:(NSString *)key
121
+ {
122
+ if ( nil == data )
123
+ {
124
+ [self deleteKey:key];
125
+ }
126
+ else
127
+ {
128
+ [data writeToFile:[self cacheFileName:key] options:NSDataWritingAtomic error:NULL];
129
+ }
130
+ }
131
+
132
+ - (NSData *)serialize:(id)obj
133
+ {
134
+ if ( [obj isKindOfClass:[NSData class]] )
135
+ return obj;
136
+
137
+ if ( [obj respondsToSelector:@selector(JSONData)] )
138
+ return [obj JSONData];
139
+
140
+ return nil;
141
+ }
142
+
143
+ - (id)unserialize:(NSData *)data
144
+ {
145
+ return [data objectFromJSONData];
146
+ }
147
+
148
+ - (NSObject *)objectForKey:(NSString *)key
149
+ {
150
+ NSData * data = [self dataForKey:key];
151
+ if ( data )
152
+ {
153
+ return [self unserialize:data];
154
+ }
155
+
156
+ return nil;
157
+ }
158
+
159
+ - (void)saveObject:(NSObject *)object forKey:(NSString *)key
160
+ {
161
+ if ( nil == object )
162
+ {
163
+ [self deleteKey:key];
164
+ }
165
+ else
166
+ {
167
+ NSData * data = [self serialize:object];
168
+ if ( data )
169
+ {
170
+ [self saveData:data forKey:key];
171
+ }
172
+ }
173
+ }
174
+
175
+ - (void)deleteKey:(NSString *)key
176
+ {
177
+ [[NSFileManager defaultManager] removeItemAtPath:[self cacheFileName:key] error:nil];
178
+ }
179
+
180
+ - (void)deleteAll
181
+ {
182
+ [[NSFileManager defaultManager] removeItemAtPath:_cachePath error:NULL];
183
+ [[NSFileManager defaultManager] createDirectoryAtPath:_cachePath
184
+ withIntermediateDirectories:YES
185
+ attributes:nil
186
+ error:NULL];
187
+ }
188
+
189
+ @end
190
+
191
+ #pragma mark -
192
+
193
+ @implementation BeeMemoryCache
194
+
195
+ @synthesize clearWhenMemoryLow = _clearWhenMemoryLow;
196
+ @synthesize maxCacheCount = _maxCacheCount;
197
+ @synthesize cachedCount = _cachedCount;
198
+ @synthesize cacheKeys = _cacheKeys;
199
+ @synthesize cacheObjs = _cacheObjs;
200
+
201
+ DEF_SINGLETON( BeeMemoryCache );
202
+
203
+ - (id)init
204
+ {
205
+ self = [super init];
206
+ if ( self )
207
+ {
208
+ _clearWhenMemoryLow = YES;
209
+ _maxCacheCount = DEFAULT_MAX_COUNT;
210
+ _cachedCount = 0;
211
+
212
+ _cacheKeys = [[NSMutableArray alloc] init];
213
+ _cacheObjs = [[NSMutableDictionary alloc] init];
214
+
215
+ #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
216
+ [self observeNotification:UIApplicationDidReceiveMemoryWarningNotification];
217
+ #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
218
+ }
219
+
220
+ return self;
221
+ }
222
+
223
+ - (void)dealloc
224
+ {
225
+ [self unobserveAllNotifications];
226
+
227
+ [_cacheObjs removeAllObjects];
228
+ [_cacheObjs release];
229
+
230
+ [_cacheKeys removeAllObjects];
231
+ [_cacheKeys release];
232
+
233
+ [super dealloc];
234
+ }
235
+
236
+ - (BOOL)hasCached:(NSString *)key
237
+ {
238
+ return [_cacheObjs objectForKey:key] ? YES : NO;
239
+ }
240
+
241
+ - (NSData *)dataForKey:(NSString *)key
242
+ {
243
+ NSObject * obj = [self objectForKey:key];
244
+ if ( obj && [obj isKindOfClass:[NSData class]] )
245
+ {
246
+ return (NSData *)obj;
247
+ }
248
+
249
+ return nil;
250
+ }
251
+
252
+ - (void)saveData:(NSData *)data forKey:(NSString *)key
253
+ {
254
+ [self saveObject:data forKey:key];
255
+ }
256
+
257
+ - (NSObject *)objectForKey:(NSString *)key
258
+ {
259
+ return [_cacheObjs objectForKey:key];
260
+ }
261
+
262
+ - (void)saveObject:(NSObject *)object forKey:(NSString *)key
263
+ {
264
+ if ( nil == key )
265
+ return;
266
+
267
+ if ( nil == object )
268
+ return;
269
+
270
+ _cachedCount += 1;
271
+
272
+ while ( _cachedCount >= _maxCacheCount )
273
+ {
274
+ NSString * tempKey = [_cacheKeys objectAtIndex:0];
275
+
276
+ [_cacheObjs removeObjectForKey:tempKey];
277
+ [_cacheKeys removeObjectAtIndex:0];
278
+
279
+ _cachedCount -= 1;
280
+ }
281
+
282
+ [_cacheKeys addObject:key];
283
+ [_cacheObjs setObject:object forKey:key];
284
+ }
285
+
286
+ - (void)deleteKey:(NSString *)key
287
+ {
288
+ if ( [_cacheObjs objectForKey:key] )
289
+ {
290
+ [_cacheKeys removeObjectIdenticalTo:key];
291
+ [_cacheObjs removeObjectForKey:key];
292
+
293
+ _cachedCount -= 1;
294
+ }
295
+ }
296
+
297
+ - (void)deleteAll
298
+ {
299
+ [_cacheKeys removeAllObjects];
300
+ [_cacheObjs removeAllObjects];
301
+
302
+ _cachedCount = 0;
303
+ }
304
+
305
+ - (void)handleNotification:(NSNotification *)notification
306
+ {
307
+ #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
308
+ if ( [notification is:UIApplicationDidReceiveMemoryWarningNotification] )
309
+ {
310
+ if ( _clearWhenMemoryLow )
311
+ {
312
+ [self deleteAll];
313
+ }
314
+ }
315
+ #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
316
+ }
317
+
318
+ @end
@@ -0,0 +1,223 @@
1
+ //
2
+ // ______ ______ ______
3
+ // /\ __ \ /\ ___\ /\ ___\
4
+ // \ \ __< \ \ __\_ \ \ __\_
5
+ // \ \_____\ \ \_____\ \ \_____\
6
+ // \/_____/ \/_____/ \/_____/
7
+ //
8
+ // Copyright (c) 2012 BEE creators
9
+ // http://www.whatsbug.com
10
+ //
11
+ // Permission is hereby granted, free of charge, to any person obtaining a
12
+ // copy of this software and associated documentation files (the "Software"),
13
+ // to deal in the Software without restriction, including without limitation
14
+ // the rights to use, copy, modify, merge, publish, distribute, sublicense,
15
+ // and/or sell copies of the Software, and to permit persons to whom the
16
+ // Software is furnished to do so, subject to the following conditions:
17
+ //
18
+ // The above copyright notice and this permission notice shall be included in
19
+ // all copies or substantial portions of the Software.
20
+ //
21
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
+ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
27
+ // IN THE SOFTWARE.
28
+ //
29
+ //
30
+ // Bee_Database.h
31
+ //
32
+
33
+ #import "Bee_Precompile.h"
34
+ #import "Bee_Singleton.h"
35
+ #import "NSObject+BeeProperty.h"
36
+ #import "NSObject+BeeNotification.h"
37
+
38
+ #import "FMDatabase.h"
39
+
40
+ #pragma mark -
41
+
42
+ @class BeeDatabase;
43
+
44
+ typedef BeeDatabase * (^BeeDatabaseBlockI)( NSInteger val );
45
+ typedef BeeDatabase * (^BeeDatabaseBlockU)( NSUInteger val );
46
+ typedef BeeDatabase * (^BeeDatabaseBlockN)( id key, ... );
47
+ typedef BeeDatabase * (^BeeDatabaseBlockB)( BOOL flag );
48
+ typedef BeeDatabase * (^BeeDatabaseBlock)( void );
49
+ typedef NSArray * (^BeeDatabaseArrayBlock)( void );
50
+ typedef id (^BeeDatabaseObjectBlock)( void );
51
+ typedef id (^BeeDatabaseObjectBlockN)( id key, ... );
52
+ typedef BOOL (^BeeDatabaseBoolBlock)( void );
53
+
54
+ #pragma mark -
55
+
56
+ @interface BeeDatabase : NSObject
57
+ {
58
+ BOOL _autoOptimize; // TO BE DONE
59
+ BOOL _batch;
60
+ NSUInteger _identifier;
61
+ NSString * _filePath;
62
+
63
+ BOOL _shadow;
64
+ FMDatabase * _database;
65
+
66
+ NSMutableArray * _select;
67
+ BOOL _distinct;
68
+ NSMutableArray * _from;
69
+ NSMutableArray * _where;
70
+ NSMutableArray * _like;
71
+ NSMutableArray * _groupby;
72
+ NSMutableArray * _having;
73
+ NSMutableArray * _keys;
74
+ NSUInteger _limit;
75
+ NSUInteger _offset;
76
+ NSMutableArray * _orderby;
77
+ NSMutableDictionary * _set;
78
+
79
+ NSMutableArray * _resultArray;
80
+ NSUInteger _resultCount;
81
+ NSInteger _lastInsertID;
82
+ BOOL _lastSucceed;
83
+
84
+ NSMutableArray * _table;
85
+ NSMutableArray * _field;
86
+ NSMutableArray * _index;
87
+
88
+ NSMutableArray * _classType;
89
+ NSMutableArray * _associate;
90
+ NSMutableArray * _has;
91
+
92
+ NSTimeInterval _lastQuery;
93
+ NSTimeInterval _lastUpdate;
94
+ }
95
+
96
+ @property (nonatomic, assign) BOOL autoOptimize; // TO BE DONE
97
+ @property (nonatomic, retain) NSString * filePath;
98
+
99
+ @property (nonatomic, assign) BOOL shadow;
100
+ @property (nonatomic, retain) FMDatabase * database;
101
+
102
+ @property (nonatomic, readonly) NSUInteger total;
103
+ @property (nonatomic, readonly) BOOL ready;
104
+ @property (nonatomic, readonly) NSUInteger identifier;
105
+
106
+ @property (nonatomic, readonly) BeeDatabaseBlockN TABLE;
107
+ @property (nonatomic, readonly) BeeDatabaseBlockN FIELD;
108
+ @property (nonatomic, readonly) BeeDatabaseBlockN FIELD_WITH_SIZE;
109
+ @property (nonatomic, readonly) BeeDatabaseBlock UNSIGNED;
110
+ @property (nonatomic, readonly) BeeDatabaseBlock NOT_NULL;
111
+ @property (nonatomic, readonly) BeeDatabaseBlock PRIMARY_KEY;
112
+ @property (nonatomic, readonly) BeeDatabaseBlock AUTO_INREMENT;
113
+ @property (nonatomic, readonly) BeeDatabaseBlock DEFAULT_ZERO;
114
+ @property (nonatomic, readonly) BeeDatabaseBlock DEFAULT_NULL;
115
+ @property (nonatomic, readonly) BeeDatabaseBlockN DEFAULT;
116
+ @property (nonatomic, readonly) BeeDatabaseBlock UNIQUE;
117
+ @property (nonatomic, readonly) BeeDatabaseBlock CREATE_IF_NOT_EXISTS;
118
+
119
+ @property (nonatomic, readonly) BeeDatabaseBlockN INDEX_ON;
120
+
121
+ @property (nonatomic, readonly) BeeDatabaseBlockN SELECT;
122
+ @property (nonatomic, readonly) BeeDatabaseBlockN SELECT_MAX;
123
+ @property (nonatomic, readonly) BeeDatabaseBlockN SELECT_MAX_ALIAS;
124
+ @property (nonatomic, readonly) BeeDatabaseBlockN SELECT_MIN;
125
+ @property (nonatomic, readonly) BeeDatabaseBlockN SELECT_MIN_ALIAS;
126
+ @property (nonatomic, readonly) BeeDatabaseBlockN SELECT_AVG;
127
+ @property (nonatomic, readonly) BeeDatabaseBlockN SELECT_AVG_ALIAS;
128
+ @property (nonatomic, readonly) BeeDatabaseBlockN SELECT_SUM;
129
+ @property (nonatomic, readonly) BeeDatabaseBlockN SELECT_SUM_ALIAS;
130
+
131
+ @property (nonatomic, readonly) BeeDatabaseBlock DISTINCT;
132
+ @property (nonatomic, readonly) BeeDatabaseBlockN FROM;
133
+
134
+ @property (nonatomic, readonly) BeeDatabaseBlockN WHERE;
135
+ @property (nonatomic, readonly) BeeDatabaseBlockN OR_WHERE;
136
+
137
+ @property (nonatomic, readonly) BeeDatabaseBlockN WHERE_IN;
138
+ @property (nonatomic, readonly) BeeDatabaseBlockN OR_WHERE_IN;
139
+ @property (nonatomic, readonly) BeeDatabaseBlockN WHERE_NOT_IN;
140
+ @property (nonatomic, readonly) BeeDatabaseBlockN OR_WHERE_NOT_IN;
141
+
142
+ @property (nonatomic, readonly) BeeDatabaseBlockN LIKE;
143
+ @property (nonatomic, readonly) BeeDatabaseBlockN NOT_LIKE;
144
+ @property (nonatomic, readonly) BeeDatabaseBlockN OR_LIKE;
145
+ @property (nonatomic, readonly) BeeDatabaseBlockN OR_NOT_LIKE;
146
+
147
+ @property (nonatomic, readonly) BeeDatabaseBlockN GROUP_BY;
148
+
149
+ @property (nonatomic, readonly) BeeDatabaseBlockN HAVING;
150
+ @property (nonatomic, readonly) BeeDatabaseBlockN OR_HAVING;
151
+
152
+ @property (nonatomic, readonly) BeeDatabaseBlockN ORDER_ASC_BY;
153
+ @property (nonatomic, readonly) BeeDatabaseBlockN ORDER_DESC_BY;
154
+ @property (nonatomic, readonly) BeeDatabaseBlockN ORDER_RAND_BY;
155
+ @property (nonatomic, readonly) BeeDatabaseBlockN ORDER_BY;
156
+
157
+ @property (nonatomic, readonly) BeeDatabaseBlockU LIMIT;
158
+ @property (nonatomic, readonly) BeeDatabaseBlockU OFFSET;
159
+
160
+ @property (nonatomic, readonly) BeeDatabaseBlockN SET;
161
+ @property (nonatomic, readonly) BeeDatabaseBlockN SET_NULL;
162
+
163
+ @property (nonatomic, readonly) BeeDatabaseBlock GET;
164
+ @property (nonatomic, readonly) BeeDatabaseBlock COUNT;
165
+
166
+ @property (nonatomic, readonly) BeeDatabaseBlock INSERT;
167
+ @property (nonatomic, readonly) BeeDatabaseBlock UPDATE;
168
+ @property (nonatomic, readonly) BeeDatabaseBlock EMPTY;
169
+ @property (nonatomic, readonly) BeeDatabaseBlock TRUNCATE;
170
+ @property (nonatomic, readonly) BeeDatabaseBlock DELETE;
171
+
172
+ @property (nonatomic, readonly) BeeDatabaseBlock BATCH_BEGIN;
173
+ @property (nonatomic, readonly) BeeDatabaseBlock BATCH_END;
174
+
175
+ @property (nonatomic, readonly) BeeDatabaseBlockN CLASS_TYPE; // for activeRecord
176
+ @property (nonatomic, readonly) BeeDatabaseBlockN ASSOCIATE; // for activeRecord
177
+ @property (nonatomic, readonly) BeeDatabaseBlockN BELONG_TO; // for activeRecord
178
+ @property (nonatomic, readonly) BeeDatabaseBlockN HAS; // for activeRecord
179
+
180
+ @property (nonatomic, readonly) NSArray * resultArray;
181
+ @property (nonatomic, readonly) NSUInteger resultCount;
182
+ @property (nonatomic, readonly) NSInteger insertID;
183
+ @property (nonatomic, readonly) BOOL succeed;
184
+
185
+ @property (nonatomic, readonly) NSTimeInterval lastQuery;
186
+ @property (nonatomic, readonly) NSTimeInterval lastUpdate;
187
+
188
+ + (BOOL)openSharedDatabase:(NSString *)path;
189
+ + (BOOL)existsSharedDatabase:(NSString *)path;
190
+ + (void)closeSharedDatabase;
191
+
192
+ + (void)setSharedDatabase:(BeeDatabase *)db;
193
+ + (BeeDatabase *)sharedDatabase;
194
+
195
+ + (void)scopeEnter;
196
+ + (void)scopeLeave;
197
+
198
+ - (id)initWithPath:(NSString *)path;
199
+ - (id)initWithDatabase:(FMDatabase *)db;
200
+
201
+ + (BOOL)exists:(NSString *)path;
202
+ - (BOOL)open:(NSString *)path;
203
+ - (void)close;
204
+ - (void)clearState;
205
+
206
+ + (NSString *)fieldNameForIdentifier:(NSString *)identifier;
207
+ + (NSString *)tableNameForClass:(Class)clazz;
208
+
209
+ - (Class)classType;
210
+
211
+ - (NSArray *)associateObjects;
212
+ - (NSArray *)associateObjectsFor:(Class)clazz;
213
+
214
+ - (NSArray *)hasObjects;
215
+ - (NSArray *)hasObjectsFor:(Class)clazz;
216
+
217
+ // internal user only
218
+ - (void)__internalResetCreate;
219
+ - (void)__internalResetSelect;
220
+ - (void)__internalResetWrite;
221
+ - (void)__internalResetResult;
222
+
223
+ @end