LibreOffice Module test (master) 1
xserviceinfo.hxx
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#ifndef INCLUDED_TEST_LANG_XSERVICEINFO_HXX
11#define INCLUDED_TEST_LANG_XSERVICEINFO_HXX
12
13#include <utility>
14#include <vector>
15
16#include <com/sun/star/uno/XInterface.hpp>
17
18#include <com/sun/star/uno/Reference.hxx>
19
20#include <test/testdllapi.hxx>
21
22namespace apitest
23{
25{
26public:
27 XServiceInfo(OUString aImplName, const OUString& rServiceName)
28 : m_aImplName(std::move(aImplName))
29 {
30 m_aServiceNames.push_back(rServiceName);
31 }
32 XServiceInfo(OUString aImplName, const std::vector<OUString> rServiceNames)
33 : m_aImplName(std::move(aImplName))
34 , m_aServiceNames(rServiceNames)
35 {
36 }
37
38 virtual css::uno::Reference<css::uno::XInterface> init() = 0;
39
40 void testGetImplementationName();
41 void testGetSupportedServiceNames();
42 void testSupportsService();
43
44protected:
46
47private:
48 OUString const m_aImplName;
49 std::vector<OUString> m_aServiceNames;
50};
51
52} // namespace apitest
53
54#endif // INCLUDED_TEST_LANG_XSERVICEINFO_HXX
55
56/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
std::vector< OUString > m_aServiceNames
XServiceInfo(OUString aImplName, const std::vector< OUString > rServiceNames)
OUString const m_aImplName
virtual css::uno::Reference< css::uno::XInterface > init()=0
XServiceInfo(OUString aImplName, const OUString &rServiceName)
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28