~drizzle-trunk/drizzle/development

1273.13.1 by Brian Aker
First pass through data dictionary.
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
4
 *  Copyright (C) 2010 Sun Microsystems
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
10
 *
11
 *  This program is distributed in the hope that it will be useful,
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *  GNU General Public License for more details.
15
 *
16
 *  You should have received a copy of the GNU General Public License
17
 *  along with this program; if not, write to the Free Software
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 */
20
1320.1.14 by Brian Aker
Small style issue.
21
#include "drizzled/session.h"
22
#include "drizzled/session_list.h"
23
1273.13.50 by Brian Aker
Additional plugins.
24
#ifndef PLUGIN_SESSION_DICTIONARY_PROCESSLIST_H
25
#define PLUGIN_SESSION_DICTIONARY_PROCESSLIST_H
1273.13.32 by Brian Aker
Big ole patch. This covers moving information_schema to old_* table names
26
27
class ProcesslistTool : public drizzled::plugin::TableFunction
1273.13.1 by Brian Aker
First pass through data dictionary.
28
{
29
public:
30
31
  ProcesslistTool();
32
1273.13.32 by Brian Aker
Big ole patch. This covers moving information_schema to old_* table names
33
  class Generator : public drizzled::plugin::TableFunction::Generator 
1273.13.1 by Brian Aker
First pass through data dictionary.
34
  {
35
    time_t now;
1320.1.14 by Brian Aker
Small style issue.
36
    drizzled::SessionList::iterator it;
1273.13.1 by Brian Aker
First pass through data dictionary.
37
38
  public:
1273.14.5 by Monty Taylor
Merged trunk.
39
    Generator(drizzled::Field **arg);
1273.13.1 by Brian Aker
First pass through data dictionary.
40
    ~Generator();
41
1273.13.21 by Brian Aker
Fix interface (we no longer need Fields passed around).
42
    bool populate();
1273.13.1 by Brian Aker
First pass through data dictionary.
43
  };
44
1273.14.5 by Monty Taylor
Merged trunk.
45
  Generator *generator(drizzled::Field **arg)
1273.13.1 by Brian Aker
First pass through data dictionary.
46
  {
1273.13.18 by Brian Aker
Update code, first pass through cleaner method for recursing through
47
    return new Generator(arg);
1273.13.1 by Brian Aker
First pass through data dictionary.
48
  }
49
};
50
1273.13.65 by Brian Aker
Lint fixes.
51
#endif /* PLUGIN_SESSION_DICTIONARY_PROCESSLIST_H */