omadrm/drmengine/notifier/src/DRMNotifierSession.cpp
branchRCL_3
changeset 18 8a03a285ab14
parent 17 e16d72588c28
child 71 1221b68b8a5f
--- a/omadrm/drmengine/notifier/src/DRMNotifierSession.cpp	Fri Mar 12 15:43:46 2010 +0200
+++ b/omadrm/drmengine/notifier/src/DRMNotifierSession.cpp	Mon Mar 15 12:41:43 2010 +0200
@@ -19,7 +19,7 @@
 // INCLUDE FILES
 #include <s32file.h>
 #include <f32file.h>
-#include "drmcommon.h"
+#include "DRMCommon.h"
 #include "DRMNotifierSession.h"
 #include "DRMNotifierServer.h"
 #include "drmnotifierclientserver.h"
@@ -29,7 +29,7 @@
 using namespace DRMNotifier;
 
 // EXTERNAL DATA STRUCTURES
-// EXTERNAL FUNCTION PROTOTYPES  
+// EXTERNAL FUNCTION PROTOTYPES
 // CONSTANTS
 
 
@@ -70,7 +70,7 @@
 // Two-phased constructor.
 // -----------------------------------------------------------------------------
 //
-CDRMNotifierSession* CDRMNotifierSession::NewL( CDRMMessageStorage* aStorage) 
+CDRMNotifierSession* CDRMNotifierSession::NewL( CDRMMessageStorage* aStorage)
     {
     CDRMNotifierSession* self = new( ELeave ) CDRMNotifierSession( aStorage );
     CleanupStack::PushL( self );
@@ -102,7 +102,7 @@
     for( i = 0; i < iMessageQueue.Count(); i++ )
         {
         if( this->iStorage ) // coverity check
-            {    
+            {
             iStorage->UpdateMessage(iMessageQueue[i]);
             }
         }
@@ -159,9 +159,9 @@
     {
     LOG( _L8( "ServiceL called" ) );
     // Trap possible errors...
-    
+
     TRAPD( error, DispatchL( aMessage ) );
-    
+
     if ( error )
         {
         LOG( _L8( "DispatcL threw an exception" ) );
@@ -179,7 +179,7 @@
 // Default constructor.
 // -----------------------------------------------------------------------------
 //
-CDRMNotifierSession::CDRMNotifierSession( CDRMMessageStorage* aStorage ) : 
+CDRMNotifierSession::CDRMNotifierSession( CDRMMessageStorage* aStorage ) :
     // Base class' constructor is called first.
     iStorage( aStorage )
     {
@@ -197,16 +197,16 @@
 
 // -----------------------------------------------------------------------------
 // CDRMNotifierSession::DispatchL
-// Checks which command the user requested, and forwards the request to 
+// Checks which command the user requested, and forwards the request to
 // appropriate private method. This helps to keep the code more readable.
 // -----------------------------------------------------------------------------
 //
-void CDRMNotifierSession::DispatchL( const RMessage2& aMessage ) 
+void CDRMNotifierSession::DispatchL( const RMessage2& aMessage )
     {
     #ifdef _DEBUG
-	RDebug::Printf(">>> [%s] %d", _S8(__PRETTY_FUNCTION__), aMessage.Function());
+    RDebug::Printf(">>> [%s] %d", _S8(__PRETTY_FUNCTION__), aMessage.Function());
     #endif
-    	
+
     switch ( aMessage.Function() )
         {
         case ENotifyClients:
@@ -283,7 +283,7 @@
         {
         NotifyL( iMessageQueue[0], ETrue );
         }
- 
+
     // Message complete will be set elsewhere.
     // All done.
     }
@@ -324,18 +324,18 @@
 
     iIsInStorage = EFalse;
 
-	iIsListening = EFalse;
-	
-	if ( !iListener.IsNull() )
-		{
-		iListener.Complete( KErrCancel );
-		}
-	
+    iIsListening = EFalse;
+
+    if ( !iListener.IsNull() )
+        {
+        iListener.Complete( KErrCancel );
+        }
+
     aMessage.Complete( KErrNone );
     }
 // -----------------------------------------------------------------------------
 // CDRMNotifierSession::RegisterURIL
-// Get the information from the client, construct a rights object, and add 
+// Get the information from the client, construct a rights object, and add
 // it to the database.
 // -----------------------------------------------------------------------------
 //
@@ -361,7 +361,7 @@
 
 // -----------------------------------------------------------------------------
 // CDRMNotifierSession::UnRegisterURIL
-// Get the information from the client, construct a rights object, and add 
+// Get the information from the client, construct a rights object, and add
 // it to the database.
 // -----------------------------------------------------------------------------
 //
@@ -487,7 +487,7 @@
     TPtr8 data( reinterpret_cast<TUint8*>(&aMessage->iEventType),
                 sizeof(TDRMEventType),
                 sizeof(TDRMEventType));
-    TPtr8 event( aMessage->iMessageData, DRMNotifier::KDRMSizeOfMessage, 
+    TPtr8 event( aMessage->iMessageData, DRMNotifier::KDRMSizeOfMessage,
                  DRMNotifier::KDRMSizeOfMessage );
 
     iListener.WriteL(0, event);
@@ -524,4 +524,4 @@
     }
 
 // ========================== OTHER EXPORTED FUNCTIONS =========================
-//  End of File  
+//  End of File