idlefw/tsrc/devicestatusplugin/ut_devstaplg/UT_DevStaPlg.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 10:13:44 +0300
branchRCL_3
changeset 28 053c6c7c14f3
permissions -rw-r--r--
Revision: 201026 Kit: 201033

/*
* Copyright (c) 2004 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:
*
*/


#ifndef __UT_DEVSTAPLG_H__
#define __UT_DEVSTAPLG_H__

//  EXTERNAL INCLUDES
#include <digia/eunit/ceunittestsuiteclass.h>

//  INTERNAL INCLUDES
#include "aicontentobserver.h"
#include "stubdataholder.h"
#include "ccontentcache.h"
#include "aiprioritizer.h"
#include "aipublisherbroadcaster.h"

//  FORWARD DECLARATIONS
class CHsContentPublisher;
class CContentObserver;
class CStubDataHolder;

#include <e32def.h>
#ifndef NONSHARABLE_CLASS
    #define NONSHARABLE_CLASS(x) class x
#endif


//  CLASS DEFINITION
/**
 *
 * EUnitWizard generated test class.
 *
 */
NONSHARABLE_CLASS( UT_DevStaPlg )
     : public CEUnitTestSuiteClass,
       public MAiPublishPrioritizer,
       public MAiPublisherBroadcaster,
       public MAiContentObserver
       
    {
    public:     // Constructors and destructors

        /**
         * Two phase construction
         */
        static UT_DevStaPlg* NewL();
        static UT_DevStaPlg* NewLC();
        /**
         * Destructor
         */
        ~UT_DevStaPlg();

    private:    // Constructors and destructors

        UT_DevStaPlg();
        void ConstructL();

    public:  // MAiPublishPrioritizer

    void TryToPublishL( MAiPublisherBroadcaster& aBroadcaster, 
                        TInt aContent, 
                        TInt aResource, 
                        TInt aPriority )
        {        
        };

    void TryToPublishL( MAiPublisherBroadcaster& aBroadcaster, 
                        TInt aContent, 
                        const TDesC16& aText, 
                        TInt aPriority )
        {        
        };

    void TryToPublishL( MAiPublisherBroadcaster& aBroadcaster, 
                        TInt aContent, 
                        const TDesC8& aBuf, 
                        TInt aPriority )
        {        
        };
                                
    void TryToCleanL( MAiPublisherBroadcaster& aBroadcaster, 
                        TInt aContent, 
                        TInt aPriority )
        {            
        };

    
    TInt NextPriority() const        
        {
        return 0;
        };

    public: // MAiPublisherBroadcaster
    
    TBool RefreshPriorizedPublishersL( TInt aContentId, TInt aPriority )
        {
        return ETrue;
        };
    
    public: // MAiContentObserver
    
    virtual TInt StartTransaction( TInt aTxId )
        {
        };
    TInt Commit( TInt aTxId )
        {
        };
    TInt CancelTransaction( TInt aTxId )
        {
        };
    TBool CanPublish( CHsContentPublisher& aPlugin, TInt aContent, TInt aIndex )
        {
        };
    TInt Publish( CHsContentPublisher& aPlugin, TInt aContent, TInt aResource, TInt aIndex )
        {
        };
    TInt Publish( CHsContentPublisher& aPlugin, TInt aContent, const TDesC16& aText, TInt aIndex )
        {
        };
    TInt Publish( CHsContentPublisher& aPlugin, TInt aContent, const TDesC8& aBuf, TInt aIndex )
        {
        };
    TInt Publish( CHsContentPublisher& aPlugin, TInt aContent, RFile& aFile, TInt aIndex )
        {
        };
    TInt Clean( CHsContentPublisher& aPlugin, TInt aContent, TInt aIndex )
        {
        };
    TAny* Extension( TUid aUid )
        {
        };
        
    private:    // New methods

         void SetupL();
         void SetupEmptyL();

         void Teardown();

         void TestL();

    private:    // Data

        EUNIT_DECLARE_TEST_TABLE;

        // CAiContentPublisher* iPublisher;
        CHsContentPublisher* iPublisher;

        CContentObserver* iCache;
        
        CStubDataHolder* iStubDataHolder;

    };

#endif      //  __UT_DEVSTAPLG_H__

// End of file