mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/inc/crequestunknown.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 09 Jun 2010 10:13:45 +0300
branchRCL_3
changeset 34 e257e2b6459d
parent 0 a2952bb97e68
permissions -rw-r--r--
Revision: 201020 Kit: 2010123

/*
* Copyright (c) 2009 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: 
*
*/


#ifndef CREQUESTUNKNOWN_H
#define CREQUESTUNKNOWN_H

#include "crequestprocessor.h"

/**
* Defines device data provider OpenSession request processor
*/
class CRequestUnknown : public CRequestProcessor
    {
public:
    /**
    * Two-phase construction method
    * @param aFramework   The data provider framework
    * @param aConnection  The connection from which the request comes
    * @return a pointer to the created request processor object
    */
    IMPORT_C static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework,
        MMTPConnection& aConnection );

    /**
    * Destructor
    */
    IMPORT_C ~CRequestUnknown();

protected:
    /**
    * Standard c++ constructor
    */
    CRequestUnknown( MMTPDataProviderFramework& aFramework,
        MMTPConnection& aConnection );

protected:
    // from CRequestProcessor
    /**
    * OpenSession request handler
    */
    IMPORT_C void ServiceL();

    /**
    * Override to match both the unknown requests
    * @param aRequest The request to match
    * @param aConnection The connection from which the request comes
    * @return always return ETrue to process all unknown request
    */
    IMPORT_C TBool Match( const TMTPTypeRequest& aRequest,
        MMTPConnection& aConnection ) const;

private:
    /**
    * Two-phase construction
    */
    void ConstructL();

    };

#endif // CREQUESTUNKNOWN_H