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

Generated by: LCOV version 1.10