wmdrm/wmdrmengine/wmdrmserver/server/inc/wmdrmdb.h
changeset 56 88330f36f634
parent 0 95b198f216e5
equal deleted inserted replaced
42:a7bc3704293e 56:88330f36f634
   107         TBuf8<KWmDrmIdSize>& aHashKey,
   107         TBuf8<KWmDrmIdSize>& aHashKey,
   108         TBuf8<KWmDrmIdSize>& aUniqueKey );
   108         TBuf8<KWmDrmIdSize>& aUniqueKey );
   109 
   109 
   110     TInt DataBaseSize( TBool aConfiguredDrive );
   110     TInt DataBaseSize( TBool aConfiguredDrive );
   111 
   111 
       
   112     // Checks how many SQL statements are prepared (buffered) currently and if either the maximum 
       
   113     // amount of buffered statements is exceeded or an enforced commit is needed, COMMITs the 
       
   114     // statements. The method also starts a new BEGIN statement after the commit operation to 
       
   115     // start a new buffering round of SQL statements. This method also controls a timer for 
       
   116     // triggering enforced commit after a predefined idle period without any prepared SQL statements. 
       
   117     void CheckDatabaseCommitL( TBool aEnforcedCommit );
   112 
   118 
   113 protected: // from base class CActive
   119 protected: // from base class CActive
   114     void RunL();
   120     void RunL();
   115     TInt RunError( TInt aError );
   121     TInt RunError( TInt aError );
   116 
   122 
   129     TWmDrmTableType TableTypeL( const TDesC8& aNamespace );
   135     TWmDrmTableType TableTypeL( const TDesC8& aNamespace );
   130     void OpenDatabaseL( TFileName& aFileNamePath, RSqlDatabase& aDatabase, TBool aConfiguredDrive );
   136     void OpenDatabaseL( TFileName& aFileNamePath, RSqlDatabase& aDatabase, TBool aConfiguredDrive );
   131     
   137     
   132     void ConvertOldLicenseStoreL();
   138     void ConvertOldLicenseStoreL();
   133     
   139     
   134     // Checks how many SQL statements are prepared (buffered) currently and if either the maximum 
   140 
   135     // amount of buffered statements is exceeded or an enforced commit is needed, COMMITs the 
       
   136     // statements. The method also starts a new BEGIN statement after the commit operation to 
       
   137     // start a new buffering round of SQL statements. This method also controls a timer for 
       
   138     // triggering enforced commit after a predefined idle period without any prepared SQL statements. 
       
   139     void CheckDatabaseCommitL( TBool aEnforcedCommit );
       
   140     void Activate();
   141     void Activate();
   141 
   142 
   142 private: // data
   143 private: // data
   143 
   144 
   144     // Not owned
   145     // Not owned