~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/user.h

  • Committer: Lee Bieber
  • Date: 2011-02-11 20:30:05 UTC
  • mfrom: (2157.1.3 build)
  • Revision ID: kalebral@gmail.com-20110211203005-757o1y2yf78dxzqr
Merge Stewart - 716848: drizzleimport displays wrong program_name
Merge Stewart - update README file
Merge Andrew and Joe - Exposes the InnoDB SYS_REPLICATION_LOG to data_dictionary so that it is fast and fixes many issues we have been having

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <string>
26
26
#include <boost/shared_ptr.hpp>
27
27
 
28
 
#include <drizzled/visibility.h>
 
28
#include "drizzled/visibility.h"
29
29
 
30
30
namespace drizzled
31
31
{
47
47
 
48
48
  enum PasswordType
49
49
  {
50
 
    NONE,
51
50
    PLAIN_TEXT,
52
51
    MYSQL_HASH
53
52
  };
54
53
 
55
54
  User():
56
 
    password_type(NONE),
 
55
    password_type(PLAIN_TEXT),
57
56
    _user(""),
58
57
    _address("")
59
58
  { }
60
59
 
61
60
  virtual void getSQLPath(std::string &arg) const;
62
61
 
63
 
  bool hasPassword() const
64
 
  {
65
 
    switch (password_type)
66
 
    {
67
 
    case NONE:
68
 
      return false;
69
 
    case PLAIN_TEXT:
70
 
    case MYSQL_HASH:
71
 
      break;
72
 
    }
73
 
 
74
 
    return true;
75
 
  }
76
 
 
77
62
  const std::string& address() const
78
63
  {
79
64
    return _address;