LCOV - code coverage report
Current view: top level - libreoffice/connectivity/source/drivers/mork - MNSProfileDiscover.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 2 50.0 %
Date: 2012-12-27 Functions: 2 3 66.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef __MNSProfileDiscover_h___
      21             : #define __MNSProfileDiscover_h___
      22             : 
      23             : #include <sal/types.h>
      24             : #include <osl/diagnose.h>
      25             : #include <osl/conditn.hxx>
      26             : #include <com/sun/star/mozilla/MozillaProductType.hpp>
      27             : #include <com/sun/star/uno/RuntimeException.hpp>
      28             : #include <com/sun/star/uno/Sequence.hxx>
      29             : #include <rtl/ustring.hxx>
      30             : 
      31             : #include <vector>
      32             : #include <map>
      33             : 
      34             : #include "dllapi.h"
      35             : 
      36             : using namespace com::sun::star::mozilla;
      37             : namespace connectivity
      38             : {
      39             :     namespace mork
      40             :     {
      41             :         class ProfileStruct;
      42             :     }
      43             : }
      44             : typedef ::std::map < ::rtl::OUString, ::connectivity::mork::ProfileStruct* > ProfileList;
      45             : namespace connectivity
      46             : {
      47             :     namespace mork
      48             :     {
      49             :         class ProfileStruct
      50             :         {
      51             :         public:
      52             :             ProfileStruct(MozillaProductType aProduct,::rtl::OUString aProfileName,
      53             :                           const ::rtl::OUString &aProfilePath
      54             :                             );
      55             :             MozillaProductType getProductType() { return product;}
      56           0 :             ::rtl::OUString getProfileName(){ return profileName;}
      57             :             ::rtl::OUString getProfilePath() ;
      58             :         protected:
      59             :             MozillaProductType product;
      60             :             ::rtl::OUString profileName;
      61             :             ::rtl::OUString profilePath;
      62             :         };
      63             : 
      64          28 :         class ProductStruct
      65             :         {
      66             :         public:
      67             :             void setCurrentProfile(::rtl::OUString aProfileName){mCurrentProfileName = aProfileName;}
      68             : 
      69             :             ::rtl::OUString mCurrentProfileName;
      70             : 
      71             :             ProfileList mProfileList;
      72             :         };
      73             : 
      74             :         //Used to query profiles information
      75             :         class LO_DLLPUBLIC_MORK ProfileAccess
      76             :         {
      77             :         public:
      78             : 
      79             :             virtual ~ProfileAccess();
      80             :             ProfileAccess();
      81             :             ::rtl::OUString getProfilePath( ::com::sun::star::mozilla::MozillaProductType product, const ::rtl::OUString& profileName ) throw (::com::sun::star::uno::RuntimeException);
      82             :             ::rtl::OUString getDefaultProfile( ::com::sun::star::mozilla::MozillaProductType product ) throw (::com::sun::star::uno::RuntimeException);
      83             :         protected:
      84             :             ProductStruct m_ProductProfileList[4];
      85             :             sal_Int32 LoadProductsInfo();
      86             :             sal_Int32 LoadXPToolkitProfiles(MozillaProductType product);
      87             :         };
      88             : 
      89             :     }
      90             : }
      91             : 
      92             : #endif // __MNSProfileDiscover_h___
      93             : 
      94             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10