diff -r 000000000000 -r ba25891c3a9e iaupdate/IAD/ui/inc/iaupdateautomaticcheck.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iaupdate/IAD/ui/inc/iaupdateautomaticcheck.h Thu Dec 17 08:51:10 2009 +0200 @@ -0,0 +1,89 @@ +/* +* 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 + +// 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__