32 #ifndef __DATABASE_RESULT_H__
33 #define __DATABASE_RESULT_H__
36 #include "sbIDatabaseResult.h"
45 #include <nsStringGlue.h>
48 #define SONGBIRD_DATABASERESULT_CONTRACTID \
49 "@songbirdnest.com/Songbird/DatabaseResult;1"
50 #define SONGBIRD_DATABASERESULT_CLASSNAME \
51 "Songbird Database Result Interface"
52 #define SONGBIRD_DATABASERESULT_CID \
57 {0x9f, 0x2a, 0x8, 0xfd, 0xf6, 0x95, 0x97, 0xcf} \
69 NS_DECL_SBIDATABASERESULT
71 nsresult
AddRow(
const std::vector<nsString> &vCellValues);
74 nsresult
SetColumnNames(
const std::vector<nsString> &vColumnNames);
75 nsresult
SetColumnName(PRUint32 dbColumn,
const nsString &strColumnName);
77 nsresult
SetRowCell(PRUint32 dbRow, PRUint32 dbCell,
const nsString &strCellValue);
78 nsresult
SetRowCells(PRUint32 dbRow,
const std::vector<nsString> &vCellValues);
97 #endif // __DATABASE_RESULT_H__
std::deque< std::vector< nsString > > dbrowcells_t
dbcolumnresolvemap_t m_ColumnResolveMap
nsresult SetColumnName(PRUint32 dbColumn, const nsString &strColumnName)
nsresult SetColumnNames(const std::vector< nsString > &vColumnNames)
virtual ~CDatabaseResult()
nsresult SetRowCell(PRUint32 dbRow, PRUint32 dbCell, const nsString &strCellValue)
void RebuildColumnResolveMap()
std::map< nsString, PRUint32 > dbcolumnresolvemap_t
nsresult DeleteRow(PRUint32 dbRow)
nsresult SetRowCells(PRUint32 dbRow, const std::vector< nsString > &vCellValues)
NS_DECL_ISUPPORTS NS_DECL_SBIDATABASERESULT nsresult AddRow(const std::vector< nsString > &vCellValues)
CDatabaseResult(PRBool aRequiresLocking=PR_FALSE)
An object containing the results of a database SELECT query.
std::vector< nsString > dbcolumnnames_t
friend class QueryProcessorThread
PRPackedBool m_RequiresLocking
dbcolumnnames_t m_ColumnNames
PRUint32 GetColumnIndexFromName(const nsAString &strColumnName)