omadrm/drmengine/drmclock/Inc/DRMClockServer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 11 May 2010 16:28:38 +0300
branchRCL_3
changeset 16 457cd4423b8c
parent 0 95b198f216e5
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* 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:  DRMClockServer manages the DRMTime in the System
*
*/



#ifndef CDRMCLOCKSERVER_H
#define CDRMCLOCKSERVER_H

//  INCLUDES
#include <e32base.h>
#include <f32file.h>
#include "DRMClock.h"
// #include "DRMClientServer.h"
#include "DRMClockSession.h"

// CONSTANTS
// MACROS
// DATA TYPES
// FUNCTION PROTOTYPES
TInt StartupClock( TAny* ); 

// FORWARD DECLARATIONS

// CLASS DECLARATION


/**
*  This class implements the DRM Clock Server functionality.
*
*  @lib unipertar.exe
*  @since S60Rel2.6
*/
NONSHARABLE_CLASS( CDRMClockServer ) : public CServer2
    {
    public:  // Constructors and destructor
        
        /**
         * Two-phased constructor.
         * @since S60Rel2.6
         * @return Pointer to newly created server instance.
         */
        static CDRMClockServer* NewL();
        
        /**
         * Destructor.
         * @since S60Rel2.6
         */
        ~CDRMClockServer();
        
    public: // Functions from base classes

    protected:  // New functions
        
    protected:  // Functions from base classes
        //class CServer
        /**
         * RunError.
         * @since S60Rel2.6
         * @param aError Error code from RunL function.
         * @return An error is returned if RunError() cannot process the
         * error.
         */
        TInt RunError( TInt aError );
        
    private:
        /**
         * C++ default constructor.
         * @since S60Rel2.6
         */
        CDRMClockServer();
        
        /**
         * By default Symbian 2nd phase constructor is private.
         * @since S60Rel2.6
         */
        void ConstructL();
        
    private: // Functions from base classes
        // Class CServer
        /** 
         * NewSessionL
         * @since S60Rel2.6
         */

        CSession2* NewSessionL( const TVersion& aVersion,
                                const RMessage2& aMessage) const;

    public:     // Data
        
    protected:  // Data
        
    private:    // Data
        CDRMClock* iDRMClock;
        
    public:     // Friend classes
        
    protected:  // Friend classes
        
    private:    // Friend classes
        
};

#endif      // CDRMCLOCKSERVER_H   

// End of File