/usr/include/Wt/Dbo/QueryColumn is in libwtdbo-dev 3.1.10-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | // This may look like C code, but it's really -*- C++ -*-
/*
* Copyright (C) 2010 Emweb bvba, Leuven, Belgium.
*
* See the LICENSE file for terms of use.
*/
#ifndef WT_DBO_QUERY_COLUMN_H_
#define WT_DBO_QUERY_COLUMN_H_
#include <Wt/WModelIndex>
#include <Wt/WString>
#include <Wt/Dbo/Dbo>
namespace Wt {
class WAbstractTableModel;
namespace Dbo {
// TODO figure out a nice syntax for qualified fields ?
class QueryColumn
{
QueryColumn(const std::string& field,
const WString& header,
WFlags<ItemFlag> flags);
/*
QueryColumn(const std::string& field,
WAbstractTableModel *editValuesModel);
*/
private:
typedef std::map<int, boost::any> HeaderData;
std::string field_;
WFlags<ItemFlag> flags_;
int fieldIdx_;
HeaderData headerData_;
WAbstractTableModel *editValuesModel_;
template <class Result> friend class QueryModel;
};
/*
* Defined in the header file to avoid a link-time dependency on
* libwt.so
*/
inline QueryColumn::QueryColumn(const std::string& field,
const WString& header,
WFlags<ItemFlag> flags)
: field_(field),
flags_(flags),
fieldIdx_(-1)
{
headerData_[DisplayRole] = header;
}
}
}
#endif // WT_DBO_QUERY_COLUMN_H_
|