Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-9546: BlackBerry: Implement Platform elements needed for KitchenSink #87

Merged
merged 8 commits into from
Jul 9, 2012

Commits on Jun 28, 2012

  1. TIMOB-9546: BlackBerry: Implement Platform elements needed for Kitche…

    …nSink
    
    Reviewers: DavidC, JP
    
    ChangeLog:
    - Update Platform.yml apidoc.
    - Added NativePlatformInterface to support native platform stuff.
    - Implemented batteryLevel, batteryState, osname, name, runtime properties.
    - Added constants describing battery states.
    - Added TiPlatform class storing all Platform properties.
    - Added methods to TiPropertyMapObject for adding properties with getter callback.
    
    Test Cases:
    - Run tibbtest.
    - Make sure implemented properties: batteryLevel, batteryState, osname, name, runtime (as well as their getters) works succesfully.
    - Use the following app.js snippet:
    
    ////////////////////////////////////////
    var win1 = Titanium.UI.createWindow({
        backgroundColor:'#F00'
    });
    
    var label1 = Ti.UI.createLabel({
    	font: {fontSize:12},
    	color:'green',
    	top: 200
    });
    
    label1.text = Ti.Platform.batteryLevel.toString();
    // label1.text = Ti.Platform.getOsname();
    // label1.text = Ti.Platform.runtime;
    // label1.text = Ti.Platform.getName();
    // label1.text = Ti.Platform.getBatteryState().toString();
    
    win1.add(label1);
    
    // open window
    win1.open();
    ////////////////////////////////////////
    #Some more info....
    unknown authored and unknown committed Jun 28, 2012
    Configuration menu
    Copy the full SHA
    7c4f473 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2012

  1. TIMOB-9546: BlackBerry: Implement Platform elements needed for Kitche…

    …nSink ver2
    
    Reviewers: DavidC, JP
    
    ChangeLog:
    - Update Platform.yml apidoc.
    - Address comments.
    
    Test Cases:
    - Run tibbtest.
    - Make sure implemented properties: batteryLevel, batteryState, osname, name, runtime (as well as their getters) works succesfully.
    - Use the following app.js snippet:
    
    ////////////////////////////////////////
     var win1 = Titanium.UI.createWindow({
     backgroundColor:'#F00'
     });
    
    var label1 = Ti.UI.createLabel({
     font: {fontSize:12},
     color:'green',
     top: 200
     });
    
    label1.text = Ti.Platform.batteryLevel.toString();
     // label1.text = Ti.Platform.getOsname();
     // label1.text = Ti.Platform.runtime;
     // label1.text = Ti.Platform.getName();
     // label1.text = Ti.Platform.getBatteryState().toString();
    
    win1.add(label1);
    
    // open window
     win1.open();
     ////////////////////////////////////////
    alexandergalstyan committed Jul 4, 2012
    Configuration menu
    Copy the full SHA
    cd0e7eb View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2012

  1. TIMOB-9546: BlackBerry: Implement Platform elements needed for Kitche…

    …nSink ver3
    
    Reviewers: DavidC, DavidL
    
    ChangeLog:
    - Address comments.
    - Make BatteryInfo class member.
    - Rename TiPlatform to TiPlatformObject.
    
    Test Cases:
    - Run tibbtest.
    - Make sure implemented properties: batteryLevel, batteryState, osname, name, runtime (as well as their getters) works succesfully.
    - Use the following app.js snippet:
    
    ////////////////////////////////////////
     var win1 = Titanium.UI.createWindow({
     backgroundColor:'#F00'
     });
    
    var label1 = Ti.UI.createLabel({
     font: {fontSize:12},
     color:'green',
     top: 200
     });
    
    label1.text = Ti.Platform.batteryLevel.toString();
     // label1.text = Ti.Platform.getOsname();
     // label1.text = Ti.Platform.runtime;
     // label1.text = Ti.Platform.getName();
     // label1.text = Ti.Platform.getBatteryState().toString();
    
    win1.add(label1);
    
    // open window
     win1.open();
     ////////////////////////////////////////
    alexandergalstyan committed Jul 6, 2012
    Configuration menu
    Copy the full SHA
    893c34c View commit details
    Browse the repository at this point in the history
  2. TIMOB-9546: BlackBerry: Implement Platform elements needed for Kitche…

    …nSink ver4
    
    Reviewers: DavidC, DavidL
    
    ChangeLog:
    - Address comments.
    
    Test Cases:
    - Run tibbtest.
    - Make sure implemented properties: batteryLevel, batteryState, osname, name, runtime (as well as their getters) works succesfully.
    - Use the following app.js snippet:
    
    ////////////////////////////////////////
     var win1 = Titanium.UI.createWindow({
     backgroundColor:'#F00'
     });
    
    var label1 = Ti.UI.createLabel({
     font: {fontSize:12},
     color:'green',
     top: 200
     });
    
    label1.text = Ti.Platform.batteryLevel.toString();
     // label1.text = Ti.Platform.getOsname();
     // label1.text = Ti.Platform.runtime;
     // label1.text = Ti.Platform.getName();
     // label1.text = Ti.Platform.getBatteryState().toString();
    
    win1.add(label1);
    
    // open window
     win1.open();
     ////////////////////////////////////////
    alexandergalstyan committed Jul 6, 2012
    Configuration menu
    Copy the full SHA
    4a59adc View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2012

  1. TIMOB-9546: BlackBerry: Implement Platform elements needed for Kitche…

    …nSink ver5
    
    Reviewers: DavidC, DavidL
    
    ChangeLog:
    - Address comments.
    
    Test Cases:
    - Run tibbtest.
    - Make sure implemented properties: batteryLevel, batteryState, osname, name, runtime (as well as their getters) works succesfully.
    - Use the following app.js snippet:
    
    ////////////////////////////////////////
     var win1 = Titanium.UI.createWindow({
     backgroundColor:'#F00'
     });
    
    var label1 = Ti.UI.createLabel({
     font: {fontSize:12},
     color:'green',
     top: 200
     });
    
    label1.text = Ti.Platform.batteryLevel.toString();
     // label1.text = Ti.Platform.getOsname();
     // label1.text = Ti.Platform.runtime;
     // label1.text = Ti.Platform.getName();
     // label1.text = Ti.Platform.getBatteryState().toString();
    
    win1.add(label1);
    
    // open window
     win1.open();
     ////////////////////////////////////////
    alexandergalstyan committed Jul 9, 2012
    Configuration menu
    Copy the full SHA
    9fb9d60 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'platformBranch', remote-tracking branch 'upstream/black…

    …berry' into platformBranch
    
    #Some more info....
    alexandergalstyan committed Jul 9, 2012
    Configuration menu
    Copy the full SHA
    4b54011 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'platformBranch', remote-tracking branch 'upstream/black…

    …berry' into platformBranch
    
    Conflicts:
    	blackberry/tibb/TiTitaniumObject.cpp
    alexandergalstyan committed Jul 9, 2012
    Configuration menu
    Copy the full SHA
    c68fbe7 View commit details
    Browse the repository at this point in the history
  4. TIMOB-9546: BlackBerry: Implement Platform elements needed for Kitche…

    …nSink ver5
    
    Reviewers: DavidC, DavidL
    
    ChangeLog:
    - Fix conflicts with GET_PROPERTY_CALLBACK.
    
    Test Cases:
    - Run tibbtest.
    - Make sure implemented properties: batteryLevel, batteryState, osname, name, runtime (as well as their getters) works succesfully.
    - Use the following app.js snippet:
    
    ////////////////////////////////////////
     var win1 = Titanium.UI.createWindow({
     backgroundColor:'#F00'
     });
    
    var label1 = Ti.UI.createLabel({
     font: {fontSize:12},
     color:'green',
     top: 200
     });
    
    label1.text = Ti.Platform.batteryLevel.toString();
     // label1.text = Ti.Platform.getOsname();
     // label1.text = Ti.Platform.runtime;
     // label1.text = Ti.Platform.getName();
     // label1.text = Ti.Platform.getBatteryState().toString();
    
    win1.add(label1);
    
    // open window
     win1.open();
     ////////////////////////////////////////
    alexandergalstyan committed Jul 9, 2012
    Configuration menu
    Copy the full SHA
    7eaf82d View commit details
    Browse the repository at this point in the history