LCOV - code coverage report
Current view: top level - connectivity/source/drivers/mork - MNSProfileDiscover.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 3 0.0 %
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 < OUString, ::connectivity::mork::ProfileStruct* > ProfileList;
      45             : namespace connectivity
      46             : {
      47             :     namespace mork
      48             :     {
      49             :         class ProfileStruct
      50             :         {
      51             :         public:
      52             :             ProfileStruct(MozillaProductType aProduct, const OUString& aProfileName,
      53             :                           const OUString &aProfilePath
      54             :                             );
      55             :             MozillaProductType getProductType() { return product;}
      56           0 :             OUString getProfileName(){ return profileName;}
      57             :             OUString getProfilePath() ;
      58             :         protected:
      59             :             MozillaProductType product;
      60             :             OUString profileName;
      61             :             OUString profilePath;
      62             :         };
      63             : 
      64           0 :         class ProductStruct
      65             :         {
      66             :         public:
      67             :             void setCurrentProfile(const OUString& aProfileName){mCurrentProfileName = aProfileName;}
      68             : 
      69             :             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             :             OUString getProfilePath( ::com::sun::star::mozilla::MozillaProductType product, const OUString& profileName ) throw (::com::sun::star::uno::RuntimeException);
      82             :             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