update dev300-m58
[ooovba.git] / connectivity / source / drivers / mozab / bootstrap / MNSRunnable.hxx
bloba1c994a3f9ed592d06dc16237f0fe348d4be9552
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: MNSRunnable.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _CONNECTIVITY_MAB_MOZAB_RUNNABLE_HXX_
32 #define _CONNECTIVITY_MAB_MOZAB_RUNNABLE_HXX_
33 #include "MNSDeclares.hxx"
34 #include <osl/thread.hxx>
36 #include <MNSInclude.hxx>
37 #include <com/sun/star/uno/Reference.hxx>
38 #ifndef _COM_SUN_STAR_MOZILLA_XCODEPROXY_HDL_
39 #include <com/sun/star/mozilla/XCodeProxy.hpp>
40 #endif
43 using namespace com::sun::star::uno;
44 using namespace com::sun::star::mozilla;
46 namespace connectivity
48 namespace mozab
50 class MNSRunnable : public nsIRunnable
52 public:
53 nsIRunnable * ProxiedObject();
54 MNSRunnable();
55 virtual ~MNSRunnable();
56 NS_DECL_ISUPPORTS
57 NS_DECL_NSIRUNNABLE
59 public:
60 sal_Int32 StartProxy(const ::com::sun::star::uno::Reference< ::com::sun::star::mozilla::XCodeProxy >& aCode); //Call this to start proxy
62 private:
63 nsIRunnable* _ProxiedObject;
64 Reference<XCodeProxy> xCode;
65 #if OSL_DEBUG_LEVEL > 0
66 oslThreadIdentifier m_oThreadID;
67 #endif
71 #endif //_CONNECTIVITY_MAB_MOZABHELPER_HXX_