iaupdate/IAD/ui/inc/iaupdateautomaticcheck.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 11 May 2010 16:20:28 +0300
branchRCL_3
changeset 17 741e5bba2bd1
parent 0 ba25891c3a9e
child 25 7333d7932ef7
permissions -rw-r--r--
Revision: 201016 Kit: 201019

/*
* Copyright (c) 2008-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:   This file contains the header file of the CIAUpdateAutomaticCheck
*                class 
*
*/


#ifndef __IAUPDATE_AUTOMATICCHECK_H__
#define __IAUPDATE_AUTOMATICCHECK_H__

// INCLUDES
#include <e32base.h>

// CLASS DECLARATION
/**
*
*/

class CIAUpdateAutomaticCheck : public CBase
    {
public:

    /**
    * Construct a CIAUpdateAutomaticCheck using two phase construction,
    * and return a pointer to the created object
    * @return A pointer to the created instance of CIAUpdateAutomaticCheck
    */
    static CIAUpdateAutomaticCheck* NewL();
    
    /**
    * Construct a CIAUpdateAutomaticCheck using two phase construction,
    * and return a pointer to the created object
    * @return A pointer to the created instance of CIAUpdateAutomaticCheck
    */
    static CIAUpdateAutomaticCheck* NewLC();
    
    /**
    * Destructor
    */
    ~CIAUpdateAutomaticCheck();

public: // new functions
    
    /**
    * Checks that automatic update checks using network connetion is  accepted by an user
    *
    * @return True value if automatic update connections are allowed, EFalse if not allowed.
    *         Returns always true if this function is called after first time
    */
    TBool AcceptAutomaticCheckL();
    
    TBool AutoUpdateCheckEnabledL();
        
private:

    /**
    * C++ constructor 
    */
    CIAUpdateAutomaticCheck();
    
    /**
     * Perform the second phase construction of a CIAUpdateAutomaticCheck object
     */
    void ConstructL();
    
    /**
    * Enables automatic updates cheks
    */
    void EnableAutoUpdateCheckL( TBool aEnable );
    
        
private: //data
    
    };


#endif // __IAUPDATE_AUTOMATICCHECK_H__