transport: empty test for sqlite converter
[abstract.git] / view / aaTreeViewRule.h
blobe9e3f9abae063643f31381b1e236bcc5ddf71272
1 /*
2 * Copyright (C) 2007 Sergey Yanovich <ynvich@gmail.com>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef AA_TREEVIEWRULE_H
21 #define AA_TREEVIEWRULE_H
23 #define AA_TREEVIEWRULE_CID \
24 { 0x29e2cb02, 0x53e1, 0x48cd, { 0x87, 0x65, 0x32, 0xd7, 0xf3, 0xcb, 0xee, 0xfa } }
25 #define AA_TREEVIEWRULE_CONTRACT "@aasii.org/view/tree-rule;1"
27 #include "aaTreeView.h"
29 class aaIFlow;
31 class aaTreeViewRule : public aaTreeView {
32 public:
33 aaTreeViewRule();
34 virtual ~aaTreeViewRule();
35 NS_DECL_ISUPPORTS_INHERITED
37 public:
38 //override
39 NS_IMETHOD Update(nsISupports *aParam);
41 protected:
42 NS_IMETHOD convertSortColumnToString(nsITreeColumn* col, nsACString& name);
43 protected:
44 virtual nsresult doGetCellText(PRInt32 row, nsITreeColumn *col, nsAString & _retval);
45 private:
46 nsresult doSortRules(nsIArray* pInput, nsITreeColumn* pColumn, const nsAString& param, nsIArray** _retval);
47 nsresult doFilterRules(nsIArray* pInput, nsITreeColumn* pColumn, const nsAString& param, nsIArray** _retval);
50 #endif //AA_TREEVIEWRULE_H