imservices/instantmessagingcache/imcacheclient/inc/mimcacheclient.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:54:49 +0200
changeset 0 e6b17d312c8b
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2008 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:  message change observer
*
*/



#ifndef __MIMCACHECLIENT_H
#define __MIMCACHECLIENT_H

#include <e32std.h>
#include <imcachedefs.h>

/**
 * An interface through which client gets information
 * about available  data updates.
 *
 * @since
 */
class MIMCacheClient
    {
    public:
    
    	
		/**
    	* Registeres the cache update observer to server
    	* @param aStatus status message to regisetr
		* @param aRight, operations
    	*/
        virtual void RegisterObserverToServerL( TRequestStatus& aStatus, EIMCacheOperations aRight ) = 0;
        
        /**
    	* unRegisteres the cache update  observer to server
    	* @param aStatus status message to regisetr
		* @param aRight, operations
    	*/
        virtual void UnRegisterObserverToServerL( TRequestStatus& aStatus, EIMCacheOperations aRight ) = 0 ;
              
        /**
        * Gets called when data update is available.
        * Client can then decide wether to use the old one
        * @param aRight, operations
        * @param abuuferptr 
        */
        virtual TPtr8 GetBufferedDataL(EIMCacheOperations aOperationType ) = 0 ;
        
        /**
         * cancels any outstanding requests pending from the server
         * @param aStatus status message to regisetr
         * @param aRight,right is operations
         */
        virtual void CancelRequestL( TRequestStatus& aStatus, EIMCacheOperations aRight) = 0;
         
protected:
    	/**
    	* Destructor
    	*/
    	virtual ~MIMCacheClient() {};
    };

#endif //__MIMCACHECLIENT_H