omadrm/drmengine/dcf/src/DcfCommon.cpp
changeset 23 493788a4a8a4
parent 0 95b198f216e5
--- a/omadrm/drmengine/dcf/src/DcfCommon.cpp	Tue Feb 02 00:21:44 2010 +0200
+++ b/omadrm/drmengine/dcf/src/DcfCommon.cpp	Fri Apr 16 15:14:55 2010 +0300
@@ -22,13 +22,13 @@
 #include <f32file.h>
 #include "DcfCommon.h"
 #include "Oma1Dcf.h"
-#include "Oma2Dcf.h"
+#include "oma2dcf.h"
 
 // ============================ MEMBER FUNCTIONS ===============================
 
 // -----------------------------------------------------------------------------
 // CDcfCommon::CDcfCommon
-// 
+//
 // -----------------------------------------------------------------------------
 //
 CDcfCommon::CDcfCommon():
@@ -46,7 +46,7 @@
 
 // -----------------------------------------------------------------------------
 // CDcfCommon::ConstructL
-// 
+//
 // -----------------------------------------------------------------------------
 //
 void CDcfCommon::ConstructL(
@@ -58,7 +58,7 @@
 
 // -----------------------------------------------------------------------------
 // CDcfCommon::NewL
-// 
+//
 // -----------------------------------------------------------------------------
 //
 EXPORT_C CDcfCommon* CDcfCommon::NewL(
@@ -84,7 +84,7 @@
 
 // -----------------------------------------------------------------------------
 // CDcfCommon::NewL
-// 
+//
 // -----------------------------------------------------------------------------
 //
 EXPORT_C CDcfCommon* CDcfCommon::NewL(
@@ -95,7 +95,7 @@
     RFile file;
     TInt r = KErrNone;
     CDcfCommon* self = NULL;
-    
+
     if (aFs == NULL)
         {
         fs = new RFs();
@@ -103,28 +103,28 @@
         CleanupStack::PushL(fs);
         User::LeaveIfError(fs->Connect());
         }
-    else 
+    else
         {
         fs = aFs;
         }
-    
-	r = file.Open(*fs, aFileName, EFileStream | EFileRead | EFileShareReadersOrWriters );
+
+    r = file.Open(*fs, aFileName, EFileStream | EFileRead | EFileShareReadersOrWriters );
     if( r == KErrInUse )
         {
-    	r = file.Open(*fs, aFileName, EFileStream | EFileRead | EFileShareAny);        
+        r = file.Open(*fs, aFileName, EFileStream | EFileRead | EFileShareAny);
 
-	    if (r == KErrInUse)
-	        {
-    	    r = file.Open(*fs, aFileName, EFileStream | EFileRead |
-    	        EFileShareReadersOnly);
-	        }
+        if (r == KErrInUse)
+            {
+            r = file.Open(*fs, aFileName, EFileStream | EFileRead |
+                EFileShareReadersOnly);
+            }
         }
-	if(r == KErrNone)
-	    {
-	    CleanupClosePushL(file);
-	    self = NewL(file);
-	    CleanupStack::PopAndDestroy();
-	    }
+    if(r == KErrNone)
+        {
+        CleanupClosePushL(file);
+        self = NewL(file);
+        CleanupStack::PopAndDestroy();
+        }
 
     if (aFs == NULL)
         {
@@ -136,7 +136,7 @@
 
 // -----------------------------------------------------------------------------
 // CDcfCommon::NewL
-// 
+//
 // -----------------------------------------------------------------------------
 //
 EXPORT_C CDcfCommon::~CDcfCommon()
@@ -156,19 +156,19 @@
 
 // -----------------------------------------------------------------------------
 // CDcfCommon::
-// 
+//
 // -----------------------------------------------------------------------------
 //
 TInt CDcfCommon::CheckUniqueId(const TDesC& aUniqueId)
-	{
-	if (aUniqueId.Compare(KDefaultContentObject) == 0)
-	    {
-	    return 0;
-	    }
-	else
-	    {
-	    return KErrNotFound;
-	    }
-	}
+    {
+    if (aUniqueId.Compare(KDefaultContentObject) == 0)
+        {
+        return 0;
+        }
+    else
+        {
+        return KErrNotFound;
+        }
+    }
 
-//  End of File  
+//  End of File