serviceproviders/sapi_mediamanagement/mediamanagementservice/inc/mgthumbnailobserver.h
changeset 5 989d2f495d90
equal deleted inserted replaced
1:a36b1e19a461 5:989d2f495d90
       
     1 /*
       
     2 * Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  This Class is observer for thumbnail generation
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MGTHUMBNAILOBSERVER_H_
       
    19 #define MGTHUMBNAILOBSERVER_H_
       
    20 #include<e32des16.h>
       
    21 
       
    22 /**
       
    23 *  MThumbnailObserver class This class is interface for observer
       
    24 *
       
    25 *  @since  Series60 v3.2
       
    26 */
       
    27 
       
    28 class MThumbnailObserver
       
    29     {
       
    30 
       
    31     public:
       
    32     /**
       
    33        * Abstract method to get URL of generated thumbnail. This method is
       
    34        * called when an thumbnail generation operation gets complete.
       
    35        * @since  Series60 
       
    36        * @param aError System wide error code showing success or failure of thumbnail generation
       
    37        * @param aThumbnailURL URL of generated thumbnail 
       
    38        * @param aTransactionID Transaction id of getthumbnail request
       
    39        * @return void
       
    40        */  
       
    41     
       
    42         virtual void ThumbnailReady(TInt aError, TDesC& aThumbnailURL,TInt32 aTransactionID)=0;
       
    43         /**
       
    44            * Abstract method when thumbnail request is canceled .It gets called
       
    45            * when an thumbnail generation operation gets canceled.
       
    46            * @since  Series60 
       
    47            * @param aError System wide error code showing success or failure of thumbnail generation
       
    48            * @param aTransactionID Transaction id of getthumbnail request
       
    49            * @return void  
       
    50            * */        
       
    51         virtual void ThumbnailRequestCancel(TInt aError,TInt32 aTransactionID)=0;
       
    52 
       
    53 
       
    54     };
       
    55 
       
    56 
       
    57 #endif /* MGTHUMBNAILOBSERVER_H_ */