--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/omadrm/drmengine/drmclock/Inc/DRMClockServer.h Thu Dec 17 08:52:27 2009 +0200
@@ -0,0 +1,119 @@
+/*
+* 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