taskswitcher/contextengine/tsfswserver/engine/src/tsfswidgetlist.cpp
branchRCL_3
changeset 17 b8fae6b8a148
parent 11 ff572dfe6d86
child 31 89165693e770
equal deleted inserted replaced
12:9674c1a575e9 17:b8fae6b8a148
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #include "tsfswidgetlist.h"
    19 #include "tsfswidgetlist.h"
    20 #include <widgetregistrydata.h>
    20 #include <widgetregistrydata.h>
       
    21 #include <widgetregistryconstants.h>
    21 
    22 
    22 // --------------------------------------------------------------------------
    23 // --------------------------------------------------------------------------
    23 // CTsFsWidgetList::NewL
    24 // CTsFsWidgetList::NewL
    24 // --------------------------------------------------------------------------
    25 // --------------------------------------------------------------------------
    25 //
    26 //
    89         CWidgetInfo *item = aWidgetInfoArr[i];
    90         CWidgetInfo *item = aWidgetInfoArr[i];
    90         delete item;
    91         delete item;
    91         }
    92         }
    92     }
    93     }
    93 
    94 
       
    95 // --------------------------------------------------------------------------
       
    96 // CTsFsWidgetList::IsCWRTWidget
       
    97 // --------------------------------------------------------------------------
       
    98 //
       
    99 TBool CTsFsWidgetList::IsCWRTWidget( TUid aUid )
       
   100     {
       
   101 	TBool ret(EFalse);
       
   102 	if(IsValBetween(KWidgetUidCWRTInternalMemoryStart,
       
   103 			KWidgetUidCWRTInternalMemoryStop, aUid.iUid) ||
       
   104 		IsValBetween(KWidgetUidCWRTExternalMemoryStart,
       
   105 			KWidgetUidCWRTExternalMemoryStop, aUid.iUid) )
       
   106 		{
       
   107 		ret = ETrue;//it is cwrt widget
       
   108 		}
       
   109     return ret;
       
   110     }
       
   111 
       
   112 // --------------------------------------------------------------------------
       
   113 // CTsFsWidgetList::IsValBetween
       
   114 // --------------------------------------------------------------------------
       
   115 //
       
   116 TBool CTsFsWidgetList::IsValBetween( TInt aMinor, TInt aMajor, TInt aBetween )
       
   117 	{
       
   118 	TBool ret(EFalse);
       
   119 	 if	( aBetween >= aMinor && aBetween < aMajor )
       
   120 		 {
       
   121 		 ret = ETrue;
       
   122 		 }
       
   123 	 return ret;
       
   124 	}
    94 
   125 
    95 // end of file
   126 // end of file