~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/plugin/plugin_stubs.h

  • Committer: Mark Atwood
  • Date: 2011-10-27 05:08:12 UTC
  • mfrom: (2445.1.11 rf)
  • Revision ID: me@mark.atwood.name-20111027050812-1icvs72lb0u4xdc4
mergeĀ lp:~olafvdspek/drizzle/refactor8

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef UNITTESTS_STUB_PLUGIN_STUBS_H
23
23
#define UNITTESTS_STUB_PLUGIN_STUBS_H
24
24
 
25
 
#include "config.h"
 
25
#include <config.h>
26
26
 
27
27
#include <cstring>
28
28
#include <drizzled/plugin/authentication.h>
53
53
    last_call_char_ptr= ptr;
54
54
  }
55
55
 
56
 
  virtual ~ClientStub() {}
57
 
 
58
56
  /**
59
57
  * Get attached session from the client object.
60
58
  * @retval Session object that is attached, NULL if none.
86
84
  virtual bool isConnected(void) { return false; };
87
85
 
88
86
  /**
89
 
  * Check to see if the client is actively reading.
90
 
  * @retval Boolean value representing reading state.
91
 
  */
92
 
  virtual bool isReading(void) { return false; };
93
 
 
94
 
  /**
95
 
  * Check to see if the client is actively writing.
96
 
  * @retval Boolean value representing writing state.
97
 
  */
98
 
  virtual bool isWriting(void)  { return false; };
99
 
 
100
 
  /**
101
87
  * Flush all data that has been buffered with store() methods.
102
88
  * @retval Boolean indicating success or failure.
103
89
  */
175
161
    (void)buffer;
176
162
    return store_ret_val;
177
163
  };
178
 
  virtual bool store(const drizzled::DRIZZLE_TIME *from)
 
164
  virtual bool store(const drizzled::type::Time *from)
179
165
  {
180
166
    return Client::store(from);
181
167
  }
194
180
  }
195
181
 
196
182
  /* Try to remove these. */
197
 
  virtual bool haveMoreData(void) { return false; };
198
183
  virtual bool haveError(void) { return false; };
199
184
  virtual bool wasAborted(void) { return false;};
200
185
};