idlefw/plugins/mcsplugin/settings/src/mcspluginsettingsapplist.cpp
changeset 1 844b978f8d5e
parent 0 79c6a41cd166
child 9 d0529222e3f0
--- a/idlefw/plugins/mcsplugin/settings/src/mcspluginsettingsapplist.cpp	Thu Dec 17 08:54:17 2009 +0200
+++ b/idlefw/plugins/mcsplugin/settings/src/mcspluginsettingsapplist.cpp	Thu Jan 07 12:55:39 2010 +0200
@@ -41,12 +41,8 @@
 _LIT( KMailboxUid, "0x100058c5" );
 _LIT( KInitialRefCount, "1" );
 _LIT( KMCSFolder, "mcsplugin_folder" );
-_LIT( KSuiteName, "suite_name" );
 _LIT8( KItemLocked, "locked");
 _LIT8( KProperValueFolder, "folder" );
-_LIT8( KProperValueSuite, "suite" );
-
-
 
 // ======== MEMBER FUNCTIONS ========
 
@@ -169,9 +165,8 @@
     TBool attrExists( EFalse );
     TSettingItem settingItem = { KErrNotFound, EApplication, EFalse };
     TBool isFolder = EFalse;
-    TBool isSuite = EFalse;
 
-    // check if the item is folder or suite
+    // check if the item is folder
     for ( TInt j = 0; j < aProperties.Count(); j++ )
         {
         if( aProperties[j]->Name() == KType )
@@ -181,11 +176,6 @@
                 {
                 isFolder = ETrue;
                 }
-
-            if ( aProperties[j]->Value() == KProperValueSuite )
-                {
-                isSuite = ETrue;
-                }          
             break;
             }
         }   
@@ -233,22 +223,6 @@
                     break;
                     }
 
-                // in case of suite, we just have to compare suite_name
-                // which is stored in param attribute
-                if ( isSuite && *attrName == KMenuAttrParameter )
-                    {
-                    TBool exists;
-                    TPtrC suitename = item->GetAttributeL( KSuiteName, exists );
-
-                    if ( !exists || suitename != *attrValue )
-                        {
-                        match = EFalse;
-                        }
-                    CleanupStack::PopAndDestroy( attrValue );
-                    CleanupStack::PopAndDestroy( attrName );
-                    break;
-                    }
-
                 // otherwise, compare attributes from HSPS and from menuitem
                 // if there is no match, move to the next item in the list
                 if ( attr != *attrValue )
@@ -391,9 +365,9 @@
         {
         TPtrC type = itemArray[ i ].Type();
         
-        // we add applications, shortcuts, folders and suites to the list
+        // we add applications, shortcuts and folders to the list
         if ( type == KMenuTypeApp || type == KMenuTypeShortcut || 
-             type == KMenuTypeFolder || type == KMenuTypeSuite )
+             type == KMenuTypeFolder )
             {
             CMenuItem* menuItem = CMenuItem::OpenL( iMenu, itemArray[ i ] );
             CleanupStack::PushL( menuItem );