Ignore:
Timestamp:
11/22/09 15:19:25 (2 years ago)
Author:
octorian
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LogicMail/src/org/logicprobe/LogicMail/PlatformInfoBB42.java

    r550 r553  
    11/*- 
    2  * Copyright (c) 2006, Derek Konigsberg 
     2 * Copyright (c) 2009, Derek Konigsberg 
    33 * All rights reserved. 
    44 * 
     
    3131package org.logicprobe.LogicMail; 
    3232 
     33import net.rim.device.api.system.CodeModuleManager; 
     34 
    3335public class PlatformInfoBB42 extends PlatformInfo { 
     36    protected String platformVersion; 
    3437 
     38    public PlatformInfoBB42() { 
     39    } 
     40     
     41    public String getPlatformVersion() { 
     42        if(platformVersion == null) { 
     43            // Get the platform version 
     44            int[] handles = CodeModuleManager.getModuleHandles(); 
     45            int size = handles.length; 
     46            //Check for a particular RIM module (Here, the ribbon app) 
     47            for (int i = size-1; i>=0;--i) { 
     48                    if (CodeModuleManager.getModuleName(handles[i]).equals("net_rim_bb_ribbon_app")) { 
     49                            platformVersion = 
     50                                    CodeModuleManager.getModuleVersion(handles[i]); 
     51                    } 
     52            } 
     53        } 
     54        return platformVersion; 
     55    } 
     56     
     57    public boolean hasTouchscreen() { 
     58        return false; 
     59    } 
    3560} 
Note: See TracChangeset for help on using the changeset viewer.