iaupdate/IAD/ui/inc/iaupdateautomaticcheck.h
changeset 0 ba25891c3a9e
child 25 7333d7932ef7
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2008-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:   This file contains the header file of the CIAUpdateAutomaticCheck
       
    15 *                class 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __IAUPDATE_AUTOMATICCHECK_H__
       
    21 #define __IAUPDATE_AUTOMATICCHECK_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 /**
       
    28 *
       
    29 */
       
    30 
       
    31 class CIAUpdateAutomaticCheck : public CBase
       
    32     {
       
    33 public:
       
    34 
       
    35     /**
       
    36     * Construct a CIAUpdateAutomaticCheck using two phase construction,
       
    37     * and return a pointer to the created object
       
    38     * @return A pointer to the created instance of CIAUpdateAutomaticCheck
       
    39     */
       
    40     static CIAUpdateAutomaticCheck* NewL();
       
    41     
       
    42     /**
       
    43     * Construct a CIAUpdateAutomaticCheck using two phase construction,
       
    44     * and return a pointer to the created object
       
    45     * @return A pointer to the created instance of CIAUpdateAutomaticCheck
       
    46     */
       
    47     static CIAUpdateAutomaticCheck* NewLC();
       
    48     
       
    49     /**
       
    50     * Destructor
       
    51     */
       
    52     ~CIAUpdateAutomaticCheck();
       
    53 
       
    54 public: // new functions
       
    55     
       
    56     /**
       
    57     * Checks that automatic update checks using network connetion is  accepted by an user
       
    58     *
       
    59     * @return True value if automatic update connections are allowed, EFalse if not allowed.
       
    60     *         Returns always true if this function is called after first time
       
    61     */
       
    62     TBool AcceptAutomaticCheckL();
       
    63     
       
    64     TBool AutoUpdateCheckEnabledL();
       
    65         
       
    66 private:
       
    67 
       
    68     /**
       
    69     * C++ constructor 
       
    70     */
       
    71     CIAUpdateAutomaticCheck();
       
    72     
       
    73     /**
       
    74      * Perform the second phase construction of a CIAUpdateAutomaticCheck object
       
    75      */
       
    76     void ConstructL();
       
    77     
       
    78     /**
       
    79     * Enables automatic updates cheks
       
    80     */
       
    81     void EnableAutoUpdateCheckL( TBool aEnable );
       
    82     
       
    83         
       
    84 private: //data
       
    85     
       
    86     };
       
    87 
       
    88 
       
    89 #endif // __IAUPDATE_AUTOMATICCHECK_H__