upnpharvester/mdhserver/inc/client/mdhclientsession.h
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /*
       
     2 * Copyright (c) 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 "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:      Metadata Harvester server's client header
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef CMMDHCLIENTSESSION_H
       
    25 #define CMMDHCLIENTSESSION_H
       
    26 
       
    27 //  INCLUDES
       
    28 #include <e32base.h>
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  Metadata Harvester session
       
    36 *
       
    37 *  @lib cmmdhclient.lib
       
    38 *  @since S60 3.1
       
    39 */
       
    40 class RCmMdhSession : public RSessionBase
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43         
       
    44         /**
       
    45         * Session constructor.
       
    46         */
       
    47         RCmMdhSession();
       
    48         
       
    49       
       
    50     public: // New functions
       
    51         
       
    52         /**
       
    53         * Make the client-server connection with Metadata Harvester.
       
    54         * @since S60 3.1
       
    55         * @param None
       
    56         * @return Status code depending on the success.
       
    57         */
       
    58         TInt Connect();
       
    59         
       
    60         /**
       
    61         * Cancel ongoing search or harvest operation
       
    62         * @since S60 3.1
       
    63         * @param None
       
    64         * @return void
       
    65         */
       
    66         void Cancel();
       
    67     
       
    68         /**
       
    69         * Search for media neighbourhood servers
       
    70         * @since S60 3.1
       
    71         * @param aStatus asynchronous request status
       
    72         * @return void
       
    73         */
       
    74         void SearchMediaservers( TRequestStatus& aStatus );
       
    75         
       
    76         
       
    77         /**
       
    78         * Harvest and synchronize metadata
       
    79         * @since S60 3.1
       
    80         * @param aStatus, asynchronous request status
       
    81         * @return void
       
    82         */
       
    83         void Harvest( TRequestStatus& aStatus );
       
    84         
       
    85     };
       
    86     
       
    87 
       
    88 #endif      // CMMDHCLIENTSESSION_H
       
    89             
       
    90 // End of File