--- a/contentstorage/castorage/src/casqlquery.cpp Fri May 14 16:10:06 2010 +0300
+++ b/contentstorage/castorage/src/casqlquery.cpp Thu May 27 13:11:12 2010 +0300
@@ -413,6 +413,41 @@
//
// ---------------------------------------------------------------------------
//
+void CCaSqlQuery::BindValuesForGetLocalizationEntryL(
+ const CCaLocalizationEntry& aLocalization)
+ {
+ BindIntL( iStatement.ParameterIndex( KSQLLocRowId ),
+ aLocalization.GetRowId() );
+ BindTextL( iStatement.ParameterIndex( KSQLLocTable ),
+ aLocalization.GetTableName() );
+ BindTextL( iStatement.ParameterIndex( KSQLLocAttribute ),
+ aLocalization.GetAttributeName() );
+ }
+
+// ---------------------------------------------------------------------------
+//
+// ---------------------------------------------------------------------------
+//
+void CCaSqlQuery::BindValuesForLocalizationEntryL(
+ const CCaLocalizationEntry& aLocalization)
+ {
+ BindIntL( iStatement.ParameterIndex( KSQLLocRowId ),
+ aLocalization.GetRowId() );
+ BindTextL( iStatement.ParameterIndex( KSQLLocTable ),
+ aLocalization.GetTableName() );
+ BindTextL( iStatement.ParameterIndex( KSQLLocAttribute ),
+ aLocalization.GetAttributeName() );
+ BindTextL( iStatement.ParameterIndex( KSQLLocQmFilename ),
+ aLocalization.GetQmFilename() );
+ BindTextL( iStatement.ParameterIndex( KSQLLocString ),
+ aLocalization.GetStringId() );
+ }
+
+
+// ---------------------------------------------------------------------------
+//
+// ---------------------------------------------------------------------------
+//
void CCaSqlQuery::BindValuesForGetEntriesL( const CCaInnerQuery* aQuery )
{
if( aQuery->GetIds().Count() > 0 )
@@ -609,6 +644,19 @@
//
// ---------------------------------------------------------------------------
//
+TBool CCaSqlQuery::ExecuteEntryPresentL( )
+ {
+ if( iStatement.Next() == KSqlAtRow )
+ {
+ return ETrue;
+ }
+ return EFalse;
+ }
+
+// ---------------------------------------------------------------------------
+//
+// ---------------------------------------------------------------------------
+//
TInt CCaSqlQuery::ExecuteL( TInt& aId )
{
if( iStatement.Next() == KSqlAtRow )
@@ -743,6 +791,13 @@
tableName )
);
+ TPtrC qmFilename;
+ User::LeaveIfError(
+ iStatement.ColumnText(
+ ColumnIndexL( iStatement, KColumnQmFile ),
+ qmFilename )
+ );
+
TPtrC attribute;
User::LeaveIfError(
iStatement.ColumnText(
@@ -763,6 +818,7 @@
result->SetStringIdL( stringId );
result->SetRowId( rowId );
result->SetTableNameL( tableName );
+ result->SetQmFilenameL( qmFilename );
aResultInput.AppendL( result );
CleanupStack::Pop( result );