~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/client.h

  • Committer: pcrews
  • Date: 2011-05-24 17:36:24 UTC
  • mfrom: (1099.4.232 drizzle)
  • Revision ID: pcrews@lucid32-20110524173624-mwr1bvq6fa1r01ao
Updated translations + 2011.05.18 tarball tag

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_PLUGIN_CLIENT_H
21
 
#define DRIZZLED_PLUGIN_CLIENT_H
 
20
#pragma once
22
21
 
23
22
#include <drizzled/catalog/instance.h>
24
23
#include <drizzled/catalog/local.h>
25
24
#include <drizzled/error_t.h>
26
25
#include <drizzled/item.h>
27
 
#include <drizzled/sql_list.h>
28
 
 
29
 
#include "drizzled/visibility.h"
30
 
 
31
 
namespace drizzled
32
 
{
33
 
class Session;
34
 
class String;
35
 
 
36
 
namespace plugin
37
 
{
 
26
#include <drizzled/visibility.h>
 
27
 
 
28
namespace drizzled {
 
29
namespace plugin {
38
30
 
39
31
/**
40
32
 * This class allows new client sources to be written. This could be through
109
101
   */
110
102
  virtual bool authenticate(void)= 0;
111
103
 
112
 
  virtual bool isConsole()
 
104
  virtual bool isConsole() const
 
105
  {
 
106
    return false;
 
107
  }
 
108
 
 
109
  virtual bool isInteractive() const
 
110
  {
 
111
    return false;
 
112
  }
 
113
 
 
114
  virtual bool isAdmin() const
113
115
  {
114
116
    return false;
115
117
  }
160
162
} /* namespace plugin */
161
163
} /* namespace drizzled */
162
164
 
163
 
#endif /* DRIZZLED_PLUGIN_CLIENT_H */