1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef  SVTOOLS_USEROPTTEST_HXX
25 #define  SVTOOLS_USEROPTTEST_HXX
26 
27 #include <com/sun/star/container/XNameAccess.hpp>
28 #include <unotools/useroptions.hxx>
29 
30 namespace css = ::com::sun::star;
31 
32 class UserOptTest
33 {
34 public:
35 	UserOptTest();
36 	~UserOptTest();
37 
38 	void impl_checkUserData();
39 
40 private:
41 	void impl_checkSetCompany( const ::rtl::OUString& sUserData );
42 	void impl_checkSetFirstName( const ::rtl::OUString& sUserData );
43 	void impl_checkSetLastName( const ::rtl::OUString& sUserData );
44 	void impl_checkSetID( const ::rtl::OUString& sUserData );
45 	void impl_checkSetStreet( const ::rtl::OUString& sUserData );
46 	void impl_checkSetCity( const ::rtl::OUString& sUserData );
47 	void impl_checkSetState( const ::rtl::OUString& sUserData );
48 	void impl_checkSetZip( const ::rtl::OUString& sUserData );
49 	void impl_checkSetCountry( const ::rtl::OUString& sUserData );
50 	void impl_checkSetPosition( const ::rtl::OUString& sUserData );
51 	void impl_checkSetTitle( const ::rtl::OUString& sUserData );
52 	void impl_checkSetTelephoneHome( const ::rtl::OUString& sUserData );
53 	void impl_checkSetTelephoneWork( const ::rtl::OUString& sUserData );
54 	void impl_checkSetFax( const ::rtl::OUString& sUserData );
55 	void impl_checkSetEmail( const ::rtl::OUString& sUserData );
56 	void impl_checkSetCustomerNumber( const ::rtl::OUString& sUserData );
57 	void impl_checkSetFathersName( const ::rtl::OUString& sUserData );
58 	void impl_checkSetApartment( const ::rtl::OUString& sUserData );
59 
60 private:
61 	SvtUserOptions m_aConfigItem;
62 
63 	css::uno::Reference< css::container::XNameAccess > m_xCfg;
64 };
65 
66 #endif // #ifndef  SVTOOLS_USEROPTTEST_HXX
67