menufw/menufwui/mmwidgets/inc/mmcacheforitem.inl
changeset 0 f72a12da539e
child 4 4d54b72983ae
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/menufw/menufwui/mmwidgets/inc/mmcacheforitem.inl	Thu Dec 17 08:40:49 2009 +0200
@@ -0,0 +1,110 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  
+*  Version     : 2 << Don't touch! Updated by Synergy at check-out.
+*
+*/
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+inline TBool CMmCacheForItem::IsValid() const
+    {
+    return iIsValid;
+    }
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+inline void CMmCacheForItem::SetSubcellsSetupCode( TMmSubcellsSetupCode aSubcellsSetupCode )
+    {
+    iSubcellsSetupCode = aSubcellsSetupCode;
+    }
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+inline TMmSubcellsSetupCode CMmCacheForItem::GetSubcellsSetupCode() const
+    {
+    __ASSERT_DEBUG( iIsValid, User::Invariant() );
+    return iSubcellsSetupCode;
+    }
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+inline void CMmCacheForItem::SetValid( TBool aValid )
+    {
+    iIsValid = aValid;
+    }
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+inline TBool CMmCacheForItem::IsCurrent()
+    {
+    return iIsCurrent;
+    }
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+inline void CMmCacheForItem::SetCurrent( TBool aCurrent )
+    {
+    iIsCurrent = aCurrent;
+    }
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+inline const TDesC& CMmCacheForItem::GetItemText() const
+    {
+    __ASSERT_DEBUG( iIsValid, User::Invariant() );
+    return iItemText;
+    }
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+inline RBuf& CMmCacheForItem::GetItemTextForModifications()
+    {
+    return iItemText;
+    }
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+inline TSize CMmCacheForItem::GetSize() const
+    {
+    __ASSERT_DEBUG( iIsValid, User::Invariant() );
+    return iItemSize;
+    }
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+inline void CMmCacheForItem::SetSize( TSize aItemSize )
+    {
+    iItemSize = aItemSize;
+    }