iaupdate/IAD/ui/inc/iaupdateagreement.h
changeset 0 ba25891c3a9e
child 17 741e5bba2bd1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/iaupdate/IAD/ui/inc/iaupdateagreement.h	Thu Dec 17 08:51:10 2009 +0200
@@ -0,0 +1,105 @@
+/*
+* 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 CIAUpdateAgreement
+*                class 
+*
+*/
+
+
+#ifndef __IAUPDATE_AGREEMENT_H__
+#define __IAUPDATE_AGREEMENT_H__
+
+// INCLUDES
+#include <e32base.h>
+
+// FORWARD DECLARATIONS
+
+
+// CLASS DECLARATION
+/**
+*
+*/
+
+class CIAUpdateAgreement : public CBase
+    {
+public:
+
+    /**
+    * Construct a CIAUpdateAgreement using two phase construction,
+    * and return a pointer to the created object
+    * @return A pointer to the created instance of CIAUpdateAgreement
+    */
+    static CIAUpdateAgreement* NewL();
+    
+    /**
+    * Construct a CIAUpdateAgreement using two phase construction,
+    * and return a pointer to the created object
+    * @return A pointer to the created instance of CIAUpdateAgreement
+    */
+    static CIAUpdateAgreement* NewLC();
+    
+    /**
+    * Destructor
+    */
+    ~CIAUpdateAgreement();
+
+public: // new functions
+    
+    /**
+    * Checks that Nokia agreement of Application Update is accepted by an user
+    * 
+    * @return True value if agreement accepted 
+    */
+    TBool AcceptAgreementL();
+    
+    /**
+    * Shows Nokia agreement of Application Update 
+    */
+    void ShowAgreementL();
+    
+    /**
+    * Is Nokia agreement of Application Update accepted by an user
+    *
+    * @return True value if agreement accepted 
+    */
+    TBool AgreementAcceptedL();
+
+private:
+
+    /**
+    * C++ constructor 
+    */
+    CIAUpdateAgreement();
+    
+    /**
+     * Perform the second phase construction of a CIAUpdateAgreement object
+     */
+    void ConstructL();
+    
+    /**
+    * Shows agreement dialog
+    * 
+    * @param aCbaResource Resource id of CBA
+    *
+    * @return Value of user selection 
+    */
+    TInt ShowDialogL( TInt aCbaResourceId );
+    
+    
+private: //data
+    
+    };
+
+
+#endif // __IAUPDATE_AGREEMENT_H__