~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/client.h

Refactor

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>
109
108
   */
110
109
  virtual bool authenticate(void)= 0;
111
110
 
112
 
  virtual bool isConsole()
 
111
  virtual bool isConsole() const
 
112
  {
 
113
    return false;
 
114
  }
 
115
 
 
116
  virtual bool isInteractive() const
 
117
  {
 
118
    return false;
 
119
  }
 
120
 
 
121
  virtual bool isAdmin() const
113
122
  {
114
123
    return false;
115
124
  }
160
169
} /* namespace plugin */
161
170
} /* namespace drizzled */
162
171
 
163
 
#endif /* DRIZZLED_PLUGIN_CLIENT_H */