iaupdate/IAD/ui/inc/iaupdateagreement.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:45:18 +0300
changeset 42 d17dc5398051
parent 33 8110bf1194d1
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
* 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 HbAction;

// 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();
        
    /**
    * 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();
    
       
private: //data
    
    };


#endif // __IAUPDATE_AGREEMENT_H__