diff -r 000000000000 -r 61fad867f68e ximpfw/presence/srcpresenceoperations/presentitygroups/operationunsubscribegroupcontent.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ximpfw/presence/srcpresenceoperations/presentitygroups/operationunsubscribegroupcontent.h Wed Nov 03 09:32:20 2010 +0530 @@ -0,0 +1,83 @@ +/* +* Copyright (c) 2006 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: Presentity group content unsubscribe operator + * +*/ + +#ifndef CPSCOPERATIONUNSUBSCRIBEGROUPCONTENT_H +#define CPSCOPERATIONUNSUBSCRIBEGROUPCONTENT_H + + +#include +#include + +#include "ximpoperationbase.h" +#include "groupcontentsubscriptionitem.h" +#include "presenceoperationdefs.h" + +/** + * Presence interest registration operation. + * + * @lib ximpoperations.lib + * @since S60 v4.0 + */ +class COperationUnsubscribeGroupContent : public CXIMPOperationBase + { + + public: + + IMPORT_C COperationUnsubscribeGroupContent(); + + void ConstructL( const TDesC8& aParamPck ); + + ~COperationUnsubscribeGroupContent(); + + + public: // from CXIMPOperationBase + + void ProcessL(); + + void RequestCompletedL(); + + TInt Type() const; + + private: // Helper methods + + /** + * Synthesise event after completion + */ + void SynthesiseEventL(); + + private: // data + + /** + * Group content access. + */ + CGroupContentSubscriptionItem* iSubItem; + + /** + * Subscription status + */ + CGroupContentSubscriptionItem::TSubscriptionStatus iSubscriptionStatus; + + /** + * Subscribed Group Id + * Own. + */ + CXIMPIdentityImp* iGroupId; + + }; + + +#endif // CPSCOPERATIONUNSUBSCRIBEGROUPCONTENT_H