LCOV - code coverage report
Current view: top level - connectivity/source/drivers/mork - MNSProfileDiscover.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 4 25.0 %
Date: 2014-11-03 Functions: 2 6 33.3 %
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 INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MNSPROFILEDISCOVER_HXX
      21             : #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MNSPROFILEDISCOVER_HXX
      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             : 
      38             : namespace connectivity
      39             : {
      40             :     namespace mork
      41             :     {
      42           0 :         class ProfileStruct
      43             :         {
      44             :         public:
      45             :             ProfileStruct(MozillaProductType aProduct = MozillaProductType_Default, const OUString& aProfileName = OUString(),
      46             :                           const OUString &aProfilePath = OUString()
      47             :                             );
      48             :             MozillaProductType getProductType() { return product;}
      49           0 :             OUString getProfileName(){ return profileName;}
      50           0 :             OUString getProfilePath()  {  return profilePath; }
      51             :         protected:
      52             :             MozillaProductType product;
      53             :             OUString profileName;
      54             :             OUString profilePath;
      55             :         };
      56             : 
      57             :         typedef ::std::map < OUString, ProfileStruct > ProfileList;
      58             : 
      59          48 :         class ProductStruct
      60             :         {
      61             :         public:
      62             :             void setCurrentProfile(const OUString& aProfileName){mCurrentProfileName = aProfileName;}
      63             : 
      64             :             OUString mCurrentProfileName;
      65             : 
      66             :             ProfileList mProfileList;
      67             :         };
      68             : 
      69             :         //Used to query profiles information
      70             :         class LO_DLLPUBLIC_MORK ProfileAccess
      71             :         {
      72             :         public:
      73             : 
      74             :             virtual ~ProfileAccess();
      75             :             ProfileAccess();
      76             :             OUString getProfilePath( ::com::sun::star::mozilla::MozillaProductType product, const OUString& profileName ) throw (::com::sun::star::uno::RuntimeException);
      77             :             OUString getDefaultProfile( ::com::sun::star::mozilla::MozillaProductType product ) throw (::com::sun::star::uno::RuntimeException);
      78             :         protected:
      79             :             ProductStruct m_ProductProfileList[4];
      80             :             sal_Int32 LoadProductsInfo();
      81             :             sal_Int32 LoadXPToolkitProfiles(MozillaProductType product);
      82             :         };
      83             : 
      84             :     }
      85             : }
      86             : 
      87             : #endif // INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MNSPROFILEDISCOVER_HXX
      88             : 
      89             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10