LCOV - code coverage report
Current view: top level - dtrans/source/cnttype - mcnttype.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 1 0.0 %
Date: 2014-11-03 Functions: 0 2 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 INCLUDED_DTRANS_SOURCE_CNTTYPE_MCNTTYPE_HXX
      21             : #define INCLUDED_DTRANS_SOURCE_CNTTYPE_MCNTTYPE_HXX
      22             : 
      23             : #include <cppuhelper/compbase1.hxx>
      24             : #include <rtl/ustring.hxx>
      25             : #include <sal/types.h>
      26             : #include <com/sun/star/lang/IllegalArgumentException.hpp>
      27             : #include <com/sun/star/datatransfer/XMimeContentType.hpp>
      28             : 
      29             : #include <map>
      30             : 
      31           0 : class CMimeContentType : public
      32             :     cppu::WeakImplHelper1< com::sun::star::datatransfer::XMimeContentType >
      33             : {
      34             : public:
      35             :     CMimeContentType( const OUString& aCntType );
      36             : 
      37             :     // XMimeContentType
      38             : 
      39             :     virtual OUString SAL_CALL getMediaType(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      40             :     virtual OUString SAL_CALL getMediaSubtype(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      41             :     virtual OUString SAL_CALL getFullMediaType(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      42             : 
      43             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getParameters(  )
      44             :         throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      45             : 
      46             :     virtual sal_Bool SAL_CALL hasParameter( const OUString& aName )
      47             :         throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      48             : 
      49             :     virtual OUString SAL_CALL getParameterValue( const OUString& aName )
      50             :         throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      51             : 
      52             : private:
      53             :     void SAL_CALL init( const OUString& aCntType ) throw( com::sun::star::lang::IllegalArgumentException );
      54             :     void SAL_CALL getSym( void );
      55             :     void SAL_CALL acceptSym( const OUString& pSymTlb );
      56             :     void SAL_CALL skipSpaces( void );
      57             :     void SAL_CALL type( void );
      58             :     void SAL_CALL subtype( void );
      59             :     void SAL_CALL trailer( void );
      60             :     OUString SAL_CALL pName( );
      61             :     OUString SAL_CALL pValue( );
      62             :     OUString SAL_CALL quotedPValue( );
      63             :     OUString SAL_CALL nonquotedPValue( );
      64             :     void SAL_CALL comment( void );
      65             :     bool SAL_CALL isInRange( const OUString& aChr, const OUString& aRange );
      66             : 
      67             : private:
      68             :     ::osl::Mutex                             m_aMutex;
      69             :     OUString                            m_MediaType;
      70             :     OUString                            m_MediaSubtype;
      71             :     OUString                            m_ContentType;
      72             :     std::map< OUString, OUString > m_ParameterMap;
      73             :     sal_Int32                                m_nPos;
      74             :     OUString                            m_nxtSym;
      75             : };
      76             : 
      77             : #endif
      78             : 
      79             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10