00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /* 00003 * This file is part of the LibreOffice project. 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this 00007 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 00008 * 00009 * This file incorporates work covered by the following license notice: 00010 * 00011 * Licensed to the Apache Software Foundation (ASF) under one or more 00012 * contributor license agreements. See the NOTICE file distributed 00013 * with this work for additional information regarding copyright 00014 * ownership. The ASF licenses this file to you under the Apache 00015 * License, Version 2.0 (the "License"); you may not use this file 00016 * except in compliance with the License. You may obtain a copy of 00017 * the License at http://www.apache.org/licenses/LICENSE-2.0 . 00018 */ 00019 00020 #ifndef _OSL_SECURITY_DECL_HXX_ 00021 #define _OSL_SECURITY_DECL_HXX_ 00022 00023 #include <rtl/ustring.hxx> 00024 # include <osl/security.h> 00025 00026 namespace osl 00027 { 00028 00034 class Security 00035 { 00036 protected: 00037 oslSecurity m_handle; 00038 00039 public: 00041 inline Security(); 00043 inline ~Security(); 00051 inline sal_Bool SAL_CALL logonUser(const rtl::OUString& strName, 00052 const rtl::OUString& strPasswd); 00063 inline sal_Bool SAL_CALL logonUser(const rtl::OUString & strName, 00064 const rtl::OUString & strPasswd, 00065 const rtl::OUString & strFileServer); 00066 00071 inline sal_Bool SAL_CALL getUserIdent( rtl::OUString& strIdent) const; 00072 00077 inline sal_Bool SAL_CALL getUserName( rtl::OUString& strName) const; 00078 00083 inline sal_Bool SAL_CALL getHomeDir( rtl::OUString& strDirectory) const; 00084 00089 inline sal_Bool SAL_CALL getConfigDir( rtl::OUString & strDirectory) const; 00090 00094 inline sal_Bool SAL_CALL isAdministrator() const; 00095 00098 inline oslSecurity getHandle() const; 00099 00100 }; 00101 00102 } 00103 00104 #endif // _OSL_SECURITY_HXX_ 00105 00106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */