iaupdate/IAD/ui/inc/iaupdateautomaticcheck.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:51:10 +0200
changeset 0 ba25891c3a9e
child 25 7333d7932ef7
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* 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__