camerauis/cameraxui/cxengine/inc/sensor/xqsensor_p.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     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 #ifndef XQSENSORPRIVATE_H
       
    18 #define XQSENSORPRIVATE_H
       
    19 
       
    20 // INCLUDES
       
    21 #include "xqsensor.h"
       
    22 #include <sensrvdatalistener.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CSensrvChannelFinder;
       
    26 
       
    27 // CLASS DECLARATION
       
    28 class XQSensorPrivate: public QObject, public CBase,
       
    29     public MSensrvDataListener
       
    30 {
       
    31 protected:
       
    32     XQSensorPrivate(XQSensor& qq);
       
    33     virtual ~XQSensorPrivate();
       
    34     virtual void open() = 0;
       
    35     virtual void close() = 0;
       
    36     virtual void startReceiving() = 0;
       
    37     virtual void stopReceiving() = 0;
       
    38     virtual XQSensor::Error error() const = 0;
       
    39 
       
    40 protected:
       
    41     CSensrvChannel* CreateChannelL(TSensrvChannelTypeId aType);
       
    42 
       
    43 protected:  //from MSensrvDataListener
       
    44     virtual void DataError(CSensrvChannel& aChannel, TSensrvErrorSeverity aError);
       
    45     virtual void GetDataListenerInterfaceL(TUid /*aInterfaceUid*/,
       
    46         TAny*& aInterface) { aInterface = NULL; }
       
    47 
       
    48 private:
       
    49     void FindChannelL(TSensrvChannelTypeId aType, TSensrvChannelInfo& aChannelInfo);
       
    50 
       
    51 protected:
       
    52     friend class XQSensor;
       
    53     XQSensor& q;
       
    54 
       
    55 protected:
       
    56     CSensrvChannelFinder* iSensrvChannelFinder;
       
    57 };
       
    58 
       
    59 #endif /*XQSENSORPRIVATE_H*/
       
    60 
       
    61 // End of file