update dev300-m58
[ooovba.git] / offapi / com / sun / star / mozilla / XProfileDiscover.idl
blob4e7e7c748ed20f56cdc48a3dfd1f765a558edc6a
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: XProfileDiscover.idl,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 ************************************************************************/
30 #ifndef __com_sun_star_mozilla_XProfileDiscover_idl__
31 #define __com_sun_star_mozilla_XProfileDiscover_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
36 #ifndef __com_sun_star_mozilla_MozillaProductType_idl__
37 #include <com/sun/star/mozilla/MozillaProductType.idl>
38 #endif
41 module com { module sun { module star { module mozilla {
45 /** is the interface used to list and get information for Mozilla/Thunderbird profiles
48 @see com::sun::star::mozilla::XProfileManager
49 @see com::sun::star::mozilla::MozillaBootstrap
51 published interface XProfileDiscover: com::sun::star::uno::XInterface
54 /** attempts to get the profiles count.
56 @param product
57 is the product name to get profiles count.Currently support "Mozilla" and "Thunderbird".
58 @returns
59 the profiles count of selected product.
62 long getProfileCount( [in]MozillaProductType product);
64 /** attempts to get the profile list for the given product.
66 @param product
67 is the product name to get profile list.Currently support "Mozilla" and "Thunderbird".
68 @param list
69 is a list of all profile of the given product.
70 @returns
71 the profile count for the given product.
74 long getProfileList( [in]MozillaProductType product,[out] sequence<string> list);
76 /** attempts to get the default profile name for the given product.
78 @param product
79 is the product name to get default profile.Currently support "Mozilla" and "Thunderbird".
80 @returns
81 the default profile name for the given product.
84 string getDefaultProfile( [in]MozillaProductType product);
87 /** attempts to get the full path for the given profile.
89 @param product
90 is the product name to get profile path.Currently support "Mozilla" and "Thunderbird".
91 @param profileName
92 the profile name to get full path.
93 @returns
94 the full path of the given profile.
97 string getProfilePath( [in]MozillaProductType product,[in]string profileName);
99 /** attempts to get whether profile is locked by other applications.
101 @param product
102 is the product name to get profile path.Currently support "Mozilla" and "Thunderbird".
103 @param profileName
104 the profile name to check.
105 @returns
106 true is the given profile is locked.
109 boolean isProfileLocked( [in]MozillaProductType product,[in]string profileName);
111 /** return true if the given profile exists
113 @param product
114 is the product name to get profile path.Currently support "Mozilla" and "Thunderbird".
115 @param profileName
116 the profile name to check.
117 @returns
118 whether given profile exists
121 boolean getProfileExists( [in]MozillaProductType product,[in]string profileName);
126 //=============================================================================
128 }; }; }; };
130 #endif