mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/inc/crequestunknown.h
changeset 0 a2952bb97e68
child 34 e257e2b6459d
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 2009 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CREQUESTUNKNOWN_H
       
    20 #define CREQUESTUNKNOWN_H
       
    21 
       
    22 #include "crequestprocessor.h"
       
    23 
       
    24 /**
       
    25 * Defines device data provider OpenSession request processor
       
    26 */
       
    27 class CRequestUnknown : public CRequestProcessor
       
    28     {
       
    29 public:
       
    30     /**
       
    31     * Two-phase construction method
       
    32     * @param aFramework   The data provider framework
       
    33     * @param aConnection  The connection from which the request comes
       
    34     * @return a pointer to the created request processor object
       
    35     */
       
    36     IMPORT_C static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework,
       
    37         MMTPConnection& aConnection );
       
    38 
       
    39     /**
       
    40     * Destructor
       
    41     */
       
    42     IMPORT_C ~CRequestUnknown();
       
    43 
       
    44 protected:
       
    45     /**
       
    46     * Standard c++ constructor
       
    47     */
       
    48     IMPORT_C CRequestUnknown( MMTPDataProviderFramework& aFramework,
       
    49         MMTPConnection& aConnection );
       
    50 
       
    51 protected:
       
    52     // from CRequestProcessor
       
    53     /**
       
    54     * OpenSession request handler
       
    55     */
       
    56     IMPORT_C void ServiceL();
       
    57 
       
    58     /**
       
    59     * Override to match both the unknown requests
       
    60     * @param aRequest The request to match
       
    61     * @param aConnection The connection from which the request comes
       
    62     * @return always return ETrue to process all unknown request
       
    63     */
       
    64     IMPORT_C TBool Match( const TMTPTypeRequest& aRequest,
       
    65         MMTPConnection& aConnection ) const;
       
    66 
       
    67 private:
       
    68     /**
       
    69     * Two-phase construction
       
    70     */
       
    71     void ConstructL();
       
    72 
       
    73     };
       
    74 
       
    75 #endif // CREQUESTUNKNOWN_H