1*ae77b8caSAriel Constenla-Haile /**************************************************************
2*ae77b8caSAriel Constenla-Haile  *
3*ae77b8caSAriel Constenla-Haile  * Licensed to the Apache Software Foundation (ASF) under one
4*ae77b8caSAriel Constenla-Haile  * or more contributor license agreements.  See the NOTICE file
5*ae77b8caSAriel Constenla-Haile  * distributed with this work for additional information
6*ae77b8caSAriel Constenla-Haile  * regarding copyright ownership.  The ASF licenses this file
7*ae77b8caSAriel Constenla-Haile  * to you under the Apache License, Version 2.0 (the
8*ae77b8caSAriel Constenla-Haile  * "License"); you may not use this file except in compliance
9*ae77b8caSAriel Constenla-Haile  * with the License.  You may obtain a copy of the License at
10*ae77b8caSAriel Constenla-Haile  *
11*ae77b8caSAriel Constenla-Haile  *   http://www.apache.org/licenses/LICENSE-2.0
12*ae77b8caSAriel Constenla-Haile  *
13*ae77b8caSAriel Constenla-Haile  * Unless required by applicable law or agreed to in writing,
14*ae77b8caSAriel Constenla-Haile  * software distributed under the License is distributed on an
15*ae77b8caSAriel Constenla-Haile  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*ae77b8caSAriel Constenla-Haile  * KIND, either express or implied.  See the License for the
17*ae77b8caSAriel Constenla-Haile  * specific language governing permissions and limitations
18*ae77b8caSAriel Constenla-Haile  * under the License.
19*ae77b8caSAriel Constenla-Haile  *
20*ae77b8caSAriel Constenla-Haile  *************************************************************/
21*ae77b8caSAriel Constenla-Haile 
22*ae77b8caSAriel Constenla-Haile // MARKER(update_precomp.py): autogen include statement, do not remove
23*ae77b8caSAriel Constenla-Haile #include "precompiled_shell.hxx"
24*ae77b8caSAriel Constenla-Haile 
25*ae77b8caSAriel Constenla-Haile #include "sysmailprov.hxx"
26*ae77b8caSAriel Constenla-Haile 
27*ae77b8caSAriel Constenla-Haile #include <cppuhelper/factory.hxx>
28*ae77b8caSAriel Constenla-Haile #include <cppuhelper/implementationentry.hxx>
29*ae77b8caSAriel Constenla-Haile 
30*ae77b8caSAriel Constenla-Haile namespace shell
31*ae77b8caSAriel Constenla-Haile {
32*ae77b8caSAriel Constenla-Haile     static ::cppu::ImplementationEntry const winsysmail_impl_entries[] =
33*ae77b8caSAriel Constenla-Haile     {
34*ae77b8caSAriel Constenla-Haile         {
35*ae77b8caSAriel Constenla-Haile             WinSysMailProvider::Create,
36*ae77b8caSAriel Constenla-Haile             WinSysMailProvider::getImplementationName_static,
37*ae77b8caSAriel Constenla-Haile             WinSysMailProvider::getSupportedServiceNames_static,
38*ae77b8caSAriel Constenla-Haile             ::cppu::createSingleComponentFactory,
39*ae77b8caSAriel Constenla-Haile             0,
40*ae77b8caSAriel Constenla-Haile             0
41*ae77b8caSAriel Constenla-Haile         },
42*ae77b8caSAriel Constenla-Haile         { 0, 0, 0, 0, 0, 0 }
43*ae77b8caSAriel Constenla-Haile     };
44*ae77b8caSAriel Constenla-Haile }
45*ae77b8caSAriel Constenla-Haile 
46*ae77b8caSAriel Constenla-Haile extern "C"
47*ae77b8caSAriel Constenla-Haile {
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)48*ae77b8caSAriel Constenla-Haile     SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
49*ae77b8caSAriel Constenla-Haile         const sal_Char **ppEnvTypeName, uno_Environment ** )
50*ae77b8caSAriel Constenla-Haile     {
51*ae77b8caSAriel Constenla-Haile         *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
52*ae77b8caSAriel Constenla-Haile     }
53*ae77b8caSAriel Constenla-Haile 
component_getFactory(const sal_Char * pImplName,void * pServiceManager,void * pRegistryKey)54*ae77b8caSAriel Constenla-Haile     SAL_DLLPUBLIC_EXPORT void *SAL_CALL component_getFactory(
55*ae77b8caSAriel Constenla-Haile         const sal_Char *pImplName, void *pServiceManager, void *pRegistryKey )
56*ae77b8caSAriel Constenla-Haile     {
57*ae77b8caSAriel Constenla-Haile         return ::cppu::component_getFactoryHelper( pImplName,
58*ae77b8caSAriel Constenla-Haile                 pServiceManager,
59*ae77b8caSAriel Constenla-Haile                 pRegistryKey ,
60*ae77b8caSAriel Constenla-Haile                 shell::winsysmail_impl_entries );
61*ae77b8caSAriel Constenla-Haile     }
62*ae77b8caSAriel Constenla-Haile }
63