deprecated a method using OS branch as an input mechanism - added a new one that does not use the branch. C3_BUILDER_WORK
authortimkelly
Fri, 06 Aug 2010 12:17:31 -0500
branchC3_BUILDER_WORK
changeset 1789 f9d171c71f7e
parent 1785 08a6717c4a99
child 1799 ee7381872847
child 1800 2e59aa939b8f
deprecated a method using OS branch as an input mechanism - added a new one that does not use the branch. Tim
core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianMacroStore.java
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianMacroStore.java	Fri Aug 06 10:12:39 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianMacroStore.java	Fri Aug 06 12:17:31 2010 -0500
@@ -178,19 +178,30 @@
     }
     
     /**
-     * Get a list of Macros for a given OS. Format will just be the name (e.g. "FOO")
+     * Get a list of Macros for a given OS. Format will just be the name (e.g. "FOO").
+     * @param osVersion - A version object. Only the major and minor rev are checked.
+     * @param branch - An OS branch (e.g. 'a' or 'b') or an empty string if none.
+     * @return A full list of define macro names (no values). Returns an empty list if the OS version is not in the store
+     * @deprecated - use getOSMacros(Version osVersion)
+     */
+    public List<String> getOSMacros(Version osVersion, String branch){
+    	return getOSMacros(osVersion);
+    }
+    
+    /**
+     * Get a list of Macros for a given OS. Format will just be the name (e.g. "FOO").
      * @param osVersion - A version object. Only the major and minor rev are checked.
      * @param branch - An OS branch (e.g. 'a' or 'b') or an empty string if none.
      * @return A full list of define macro names (no values). Returns an empty list if the OS version is not in the store
      */
-    public List<String> getOSMacros(Version osVersion, String branch){
+    public List<String> getOSMacros(Version osVersion){
     	List<String> osMacroList = new ArrayList<String>();
     	
     	String majStr = String.valueOf(osVersion.getMajor());
     	String minStr = String.valueOf(osVersion.getMinor());
     	if (majStr.length() > 0 && minStr.length() > 0){
     		String osVerStr =  majStr + "." + minStr;
-    		osMacroList = osMacros.get(osVerStr + branch);
+    		osMacroList = osMacros.get(osVerStr);
     	}
     	
     	if (osMacroList == null){
@@ -200,6 +211,7 @@
     	
     }
     
+    
     /**
      * Get a hash map of all the platforms and their associated macros for a given OS version
      * For OS version, only major/minor are checked in the store.