UDK 3.2.7 C/C++ API Reference
osl/security_decl.hxx
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*************************************************************************
00003  *
00004  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
00005  *
00006  * Copyright 2000, 2010 Oracle and/or its affiliates.
00007  *
00008  * OpenOffice.org - a multi-platform office productivity suite
00009  *
00010  * This file is part of OpenOffice.org.
00011  *
00012  * OpenOffice.org is free software: you can redistribute it and/or modify
00013  * it under the terms of the GNU Lesser General Public License version 3
00014  * only, as published by the Free Software Foundation.
00015  *
00016  * OpenOffice.org is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU Lesser General Public License version 3 for more details
00020  * (a copy is included in the LICENSE file that accompanied this code).
00021  *
00022  * You should have received a copy of the GNU Lesser General Public License
00023  * version 3 along with OpenOffice.org.  If not, see
00024  * <http://www.openoffice.org/license.html>
00025  * for a copy of the LGPLv3 License.
00026  *
00027  ************************************************************************/
00028 
00029 #ifndef _OSL_SECURITY_DECL_HXX_
00030 #define _OSL_SECURITY_DECL_HXX_
00031 
00032 #include <rtl/ustring.hxx>
00033 #   include <osl/security.h>
00034 
00035 namespace osl
00036 {
00037 
00043 class Security
00044 {
00045 protected:
00046     oslSecurity m_handle;
00047 
00048 public:
00050     inline Security();
00052     inline ~Security();
00060     inline sal_Bool SAL_CALL logonUser(const rtl::OUString& strName,
00061                                        const rtl::OUString& strPasswd);
00072     inline sal_Bool SAL_CALL logonUser(const rtl::OUString & strName,
00073                                        const rtl::OUString & strPasswd,
00074                                        const rtl::OUString & strFileServer);
00075 
00080     inline sal_Bool  SAL_CALL getUserIdent( rtl::OUString& strIdent) const;
00081 
00086     inline sal_Bool SAL_CALL getUserName( rtl::OUString& strName) const;
00087 
00092     inline sal_Bool SAL_CALL getHomeDir( rtl::OUString& strDirectory) const;
00093 
00098     inline sal_Bool SAL_CALL getConfigDir( rtl::OUString & strDirectory) const;
00099 
00103     inline sal_Bool SAL_CALL isAdministrator() const;
00104 
00107     inline oslSecurity getHandle() const;
00108 
00109 };
00110 
00111 }
00112 
00113 #endif  // _OSL_SECURITY_HXX_
00114 
00115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines