LibreOffice Module connectivity (master) 1
mysqlc_user.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#include <utility>
11
12#include "mysqlc_user.hxx"
13
14using namespace ::connectivity;
15using namespace ::connectivity::mysqlc;
16using namespace ::connectivity::sdbcx;
17
18using namespace ::com::sun::star;
19using namespace ::com::sun::star::sdbc;
20
21User::User(css::uno::Reference<css::sdbc::XConnection> xConnection)
22 : OUser(true) // Case Sensitive
23 , m_xConnection(std::move(xConnection))
24{
25}
26
27User::User(css::uno::Reference<css::sdbc::XConnection> xConnection, const OUString& rName)
28 : OUser(rName,
29 true) // Case Sensitive
30 , m_xConnection(std::move(xConnection))
31{
32}
33
34void User::changePassword(const OUString&, const OUString& /* newPassword */)
35{
36 // TODO: implement
37}
38
39sal_Int32 User::getPrivileges(const OUString&, sal_Int32)
40{
41 // TODO: implement.
42 return 0;
43}
44
45sal_Int32 User::getGrantablePrivileges(const OUString&, sal_Int32)
46{
47 // TODO: implement.
48 return 0;
49}
50
51//----- IRefreshableGroups ----------------------------------------------------
53{
54 // TODO: implement.
55}
56
57/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
struct _ADOUser User
Definition: Awrapadox.hxx:30
virtual void refreshGroups() override
virtual sal_Int32 SAL_CALL getPrivileges(const OUString &, sal_Int32) override
User(css::uno::Reference< css::sdbc::XConnection > xConnection)
Create a "new" descriptor, which isn't yet in the database.
Definition: mysqlc_user.cxx:21
virtual void SAL_CALL changePassword(const OUString &, const OUString &newPassword) override
virtual sal_Int32 SAL_CALL getGrantablePrivileges(const OUString &, sal_Int32) override
Reference< XConnection > m_xConnection