williamr@2: // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // WAP Push Message Inline functions file for the Utility class williamr@2: // williamr@2: // williamr@2: williamr@2: #ifndef __CWAPPUSHMSGUTILS_INL_ williamr@2: #define __CWAPPUSHMSGUTILS_INL_ williamr@2: williamr@2: williamr@2: /** williamr@2: * Returns a reference to the CMsvSession member of the class. williamr@2: * Used by other objects when they need to pass a reference to another williamr@2: * function, usually Push Entry class for Save or Retrieve. williamr@2: * williamr@2: * @return Reference to the iMsvSession class member. williamr@2: */ williamr@2: inline CMsvSession& CWapPushMsgUtils::Session() const williamr@2: { williamr@2: return *iMsvSession; williamr@2: } williamr@2: williamr@2: williamr@2: /** williamr@2: * Inherited function that must be implemented. williamr@2: * Does not do anything as we do not need to respond to session events. williamr@2: * If there are any problems, calls to the session will leave. Things will be williamr@2: * tidied up then. williamr@2: * @param TMsvSessionEvent enumeration indicating event that has just occured williamr@2: * @param TAny* specific data williamr@2: */ williamr@2: inline void CWapPushMsgUtils::HandleSessionEventL(TMsvSessionEvent , TAny* , TAny* , TAny* ) williamr@2: { williamr@2: } williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: * Static function that determines whether an entry has been flagged williamr@2: * as Deleted. Hides the implementation of the deletion mechanism, and williamr@2: * avoids other classes having to perform bitwise operations. williamr@2: * williamr@2: * @param aEntry Reference to an entry in the message server index williamr@2: * @return TBool ETrue if the entry status is set to Deleted, otherwise EFalse. williamr@2: */ williamr@2: inline TBool CWapPushMsgUtils::IsDeleted(const TMsvEntry& aEntry) williamr@2: { williamr@2: // Must always be a Push Msg Entry, otherwise operation is pointless williamr@2: __ASSERT_ALWAYS(aEntry.iMtm == KUidMtmWapPush, williamr@2: User::Panic(KMsgUtilsPanicTitle,EPushMsgUtilsNotValidPushMsg)); williamr@2: return ( (aEntry.MtmData1() & KPushMaskOnlyStatus) williamr@2: == CPushMsgEntryBase::EPushMsgStatusDeleted); williamr@2: } williamr@2: williamr@2: williamr@2: #endif