iaupdate/IAD/ui/inc/iaupdateagreement.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:22:02 +0100
branchRCL_3
changeset 66 8b7f4e561641
parent 65 7333d7932ef7
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2008-2010 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();
    
    void SetAgreementAcceptedL();

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__