1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XProfileDiscover.idl,v $
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
>
36 #ifndef __com_sun_star_mozilla_MozillaProductType_idl__
37 #include
<com
/sun
/star
/mozilla
/MozillaProductType.idl
>
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.
57 is the product name to get profiles count.Currently support "Mozilla" and "Thunderbird".
59 the profiles count of selected product.
62 long getProfileCount
( [in]MozillaProductType product
);
64 /** attempts to get the profile list for the given product.
67 is the product name to get profile list.Currently support "Mozilla" and "Thunderbird".
69 is a list of all profile of the given product.
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.
79 is the product name to get default profile.Currently support "Mozilla" and "Thunderbird".
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.
90 is the product name to get profile path.Currently support "Mozilla" and "Thunderbird".
92 the profile name to get full path.
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.
102 is the product name to get profile path.Currently support "Mozilla" and "Thunderbird".
104 the profile name to check.
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
114 is the product name to get profile path.Currently support "Mozilla" and "Thunderbird".
116 the profile name to check.
118 whether given profile exists
121 boolean getProfileExists
( [in]MozillaProductType product
,[in]string profileName
);
126 //=============================================================================