videocollection/hgmyvideos/inc/vcxhgtelephonyclient.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:40:47 +0200
branchRCL_3
changeset 9 5294c000a26d
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201009 Kit: 201010

/*
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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:      Telephony client component.*
*/




#ifndef VCXHGTELEPHONYCLIENT_H
#define VCXHGTELEPHONYCLIENT_H

// INCLUDE FILES
#include <e32base.h>
#include <etelmm.h>


/**
* Class connects to ETel for asking lock code from user.
* Copied from vcnsuis/vcnssettings/vcnssettingsengine.
*/
NONSHARABLE_CLASS( CVcxHgTelephonyClient ) : public CBase
    { 

    public:

        /**
         * Constructor.
         */
        CVcxHgTelephonyClient();

        /**
         * Closes the ETel connection.
         */
        virtual ~CVcxHgTelephonyClient();

        /**
         * Check the lock code 
         *
         * @return ETrue if the user enters the correct lock code
         */
        TBool CheckLockCodeL();
  
    private: // data
         
        /**
         * Flag that tells when connection has been made.
         */
        TBool iPhoneConnected;
        
        /**
         * Telephony server session.
         */
        RTelServer iServer;
        
        /**
         * Access to mobile phone functionality.
         */
        RMobilePhone iPhone;

    };

#endif // VCXHGTELEPHONYCLIENT_H