Subversion Repository Public Repository

litesoft

Diff Revisions 905 vs 906 for /trunk/mobileGWT/gwt-phonegap/src/main/java/com/googlecode/gwtphonegap/client/device/Device.java

Diff revisions: vs.
  @@ -17,51 +17,61 @@
17 17
18 18 public interface Device {
19 19
20 - /**
21 - * Get the device's model name.
22 - *
23 - * device.name returns the name of the device's model or product. This value
24 - * is set by the device manufacturer and may be different across versions of
25 - * the same product.
26 - *
27 - * <h1>Supported Platforms</h1>
28 - *
29 - * <ul>
30 - * <li>Android</li>
31 - * <li>BlackBerry</li>
32 - * <li>BlackBerry Widgets (OS 5.0 and higher)</li>
33 - * <li>iPhone</li>
34 - * </ul>
35 - *
36 - *
37 - * <h1>Android Quirks</h1>
38 - *
39 - * <ul>
40 - * <li>Gets the product name instead of the model name.
41 - * <ul>
42 - * <li>The product name is often the code name given during production.</li>
43 - * <li>e.g. Nexus One returns "Passion", Motorola Droid returns "voles"</li>
44 - * </ul>
45 - * </li>
46 - * </ul>
47 - *
48 - *
49 - * <h1>iPhone Quirks</h1>
50 - *
51 - * <ul>
52 - * <li>Gets the device's custom name instead of the device model name.
53 - * <ul>
54 - * <li>The custom name is set by the owner in iTunes.</li>
55 - * <li>e.g. "Joe's iPhone"</li>
56 - * </ul>
57 - * </li>
58 - * </ul>
59 - *
60 - *
61 - * @return the models device name
62 - */
20 + /**
21 + * Get the device's model name.
22 + *
23 + * device.name returns the name of the device's model or product. This value is set by the device
24 + * manufacturer and may be different across versions of the same product.
25 + *
26 + * <h1>Supported Platforms</h1>
27 + *
28 + * <ul>
29 + * <li>Android</li>
30 + * <li>BlackBerry</li>
31 + * <li>BlackBerry Widgets (OS 5.0 and higher)</li>
32 + * <li>iPhone</li>
33 + * </ul>
34 + *
35 + *
36 + * <h1>Android Quirks</h1>
37 + *
38 + * <ul>
39 + * <li>Gets the product name instead of the model name.
40 + * <ul>
41 + * <li>The product name is often the code name given during production.</li>
42 + * <li>e.g. Nexus One returns "Passion", Motorola Droid returns "voles"</li>
43 + * </ul>
44 + * </li>
45 + * </ul>
46 + *
47 + *
48 + * <h1>iPhone Quirks</h1>
49 + *
50 + * <ul>
51 + * <li>Gets the device's custom name instead of the device model name.
52 + * <ul>
53 + * <li>The custom name is set by the owner in iTunes.</li>
54 + * <li>e.g. "Joe's iPhone"</li>
55 + * </ul>
56 + * </li>
57 + * </ul>
58 + *
59 + * @deprecated use {@link #getName()}
60 + *
61 + *
62 + * @return the models device name
63 + */
64 + @Deprecated
63 65 public abstract String getName();
64 66
67 + /**
68 + * device.model returns the name of the device's model or product. This value is set by the device
69 + * manufacturer and may be different across versions of the same product.
70 + *
71 + * @return the device model
72 + */
73 + public abstract String getModel();
74 +
65 75 /**
66 76 * Get the version of phonegap running on the device.
67 77 *