View Javadoc

1   /*
2    * Copyright 2011 SOFTEC sa. All rights reserved.
3    *
4    * This source code is licensed under the Creative Commons
5    * Attribution-NonCommercial-NoDerivs 3.0 Luxembourg
6    * License.
7    *
8    * To view a copy of this license, visit
9    * http://creativecommons.org/licenses/by-nc-nd/3.0/lu/
10   * or send a letter to Creative Commons, 171 Second Street,
11   * Suite 300, San Francisco, California, 94105, USA.
12   */
13  
14  package org.codehaus.mojo.javascript;
15  
16  import java.io.File;
17  import java.util.UUID;
18  
19  /**
20   * Class representing the titanium configuration.
21   */
22  public class Tiapp {
23  
24      /**
25       * The project identifier.
26       */
27      private String projectId;
28  
29      /**
30       * The name of the application.
31       * Defaults to the name of the project.
32       */
33      private String name;
34  
35      /**
36       * Version of the application
37       */
38      private String version;
39  
40      /**
41       * Publisher of the application.
42       */
43      private String publisher;
44  
45      /**
46       * The url of the application.
47       */
48      private String url;
49  
50      /**
51       * The description of the application.
52       */
53      private String description;
54  
55      /**
56       * The copyright of the application.
57       */
58      private String copyright;
59  
60      /**
61       * The icon file to use.
62       */
63      private File icon;
64  
65      private boolean persistentWifi = false;
66      private boolean prerenderedIcon = false;
67      private String  statusBarStyle = "default";
68      private boolean  statusBarHidden = false;
69      private boolean  fullScreen = false;
70      private boolean  navBarHidden = false;
71      private boolean analytics = true;
72      private String  guid = UUID.randomUUID().toString();
73  
74      /**
75       * File containing the iphone configuration part of the tiapp.xml file.
76       */
77      private File iphoneConfiguration;
78  
79      /**
80       * File containing the android configuration part of the tiapp.xml file.
81       */
82      private File androidConfiguration;
83  
84      /**
85       * File containing the modules of the tiapp.xml file.
86       */
87      private File modules;
88  
89      public boolean isAnalytics() {
90          return analytics;
91      }
92  
93      public void setAnalytics(boolean analytics) {
94          this.analytics = analytics;
95      }
96  
97      public String getCopyright() {
98          return copyright;
99      }
100 
101     public void setCopyright(String copyright) {
102         this.copyright = copyright;
103     }
104 
105     public String getDescription() {
106         return description;
107     }
108 
109     public void setDescription(String description) {
110         this.description = description;
111     }
112 
113     public boolean isFullScreen() {
114         return fullScreen;
115     }
116 
117     public void setFullScreen(boolean fullScreen) {
118         this.fullScreen = fullScreen;
119     }
120 
121     public String getGuid() {
122         return guid;
123     }
124 
125     public void setGuid(String guid) {
126         this.guid = guid;
127     }
128 
129     public File getIcon() {
130         return icon;
131     }
132 
133     public void setIcon(File icon) {
134         this.icon = icon;
135     }
136 
137     public String getName() {
138         return name;
139     }
140 
141     public void setName(String name) {
142         this.name = name;
143     }
144 
145     public boolean isNavBarHidden() {
146         return navBarHidden;
147     }
148 
149     public void setNavBarHidden(boolean navBarHidden) {
150         this.navBarHidden = navBarHidden;
151     }
152 
153     public boolean isPersistentWifi() {
154         return persistentWifi;
155     }
156 
157     public void setPersistentWifi(boolean persistentWifi) {
158         this.persistentWifi = persistentWifi;
159     }
160 
161     public boolean isPrerenderedIcon() {
162         return prerenderedIcon;
163     }
164 
165     public void setPrerenderedIcon(boolean prerenderedIcon) {
166         this.prerenderedIcon = prerenderedIcon;
167     }
168 
169     public String getProjectId() {
170         return projectId;
171     }
172 
173     public void setProjectId(String projectId) {
174         this.projectId = projectId;
175     }
176 
177     public String getPublisher() {
178         return publisher;
179     }
180 
181     public void setPublisher(String publisher) {
182         this.publisher = publisher;
183     }
184 
185     public boolean isStatusBarHidden() {
186         return statusBarHidden;
187     }
188 
189     public void setStatusBarHidden(boolean statusBarHidden) {
190         this.statusBarHidden = statusBarHidden;
191     }
192 
193     public String getStatusBarStyle() {
194         return statusBarStyle;
195     }
196 
197     public void setStatusBarStyle(String statusBarStyle) {
198         this.statusBarStyle = statusBarStyle;
199     }
200 
201     public String getUrl() {
202         return url;
203     }
204 
205     public void setUrl(String url) {
206         this.url = url;
207     }
208 
209     public String getVersion() {
210         return version;
211     }
212 
213     public void setVersion(String version) {
214         this.version = version;
215     }
216 }
217