Update contrib.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Defines a read-only interface for UPS Database and classes to keep filter and record objects.
31 #include <ups/upstypes.h>
33 namespace UserPromptService
36 _LIT(KDecisionViewPanic,"UpsDbView");
38 NONSHARABLE_CLASS(CDecisionView):public CActive
40 Stores a handle to a view object and provides a method to retrieve a record from the view.
43 friend class CDecisionDb;
44 friend class CDecisionDbW;
47 IMPORT_C static CDecisionView *NewLC();
51 IMPORT_C void EvaluateView(TRequestStatus& aStatus);
52 IMPORT_C CDecisionRecord* NextDecisionL();
56 static CDecisionRecord* GenerateRecordL(RDbRowSet& aRowSet, CDbColSet* aColSet);
58 From CActive. Handles an evaluation request completion event and evaluate next part if required.
62 From CActive. Cancels evaluation.
66 From CActive. Handles errors.
68 TInt RunError(TInt aError);
72 Handle to the view object generated from an SQL query
76 Pointer to the decision database column set definition
80 Copy of the status variable of the client which requested the evaluation service
82 TRequestStatus* iClientStatus;
86 NONSHARABLE_CLASS(CDecisionDb):public CBase
88 A read-only interface for UPS decision database. Provide methods to query database.
92 IMPORT_C CDecisionView *CreateViewL(CDecisionFilter& aFilter);
98 void CreateSqlStatementLC(CDecisionFilter& aFilter, RBuf& aSql);
99 void DoubleSingleQuotesL(const TDesC& aSource, RBuf& aDestination);
102 const TDesC* GetComparisonOperator(const TUint32& aFlag) const;
103 void AppendQueryInteger(const TUint32& aValue, TDes& aSql, TBool& aMultiple, const TUint32& aFlag, const TUint32& aSetCol, const TDesC& aColName);
104 void AppendQueryStringL(const TDesC& aValue, TDes& aSql, TBool& aMultiple, const TUint32& aFlag, const TUint32& aSetCol, const TDesC& aColName);
108 * Handle to the decision store database
110 RDbStoreDatabase iDatabase;
112 * Pointer to the database file storage object
117 }//namespace UserPromptService