LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/libcmis - object-type.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 2 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* libcmis
       2                 :            :  * Version: MPL 1.1 / GPLv2+ / LGPLv2+
       3                 :            :  *
       4                 :            :  * The contents of this file are subject to the Mozilla Public License Version
       5                 :            :  * 1.1 (the "License"); you may not use this file except in compliance with
       6                 :            :  * the License or as specified alternatively below. You may obtain a copy of
       7                 :            :  * the License at http://www.mozilla.org/MPL/
       8                 :            :  *
       9                 :            :  * Software distributed under the License is distributed on an "AS IS" basis,
      10                 :            :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      11                 :            :  * for the specific language governing rights and limitations under the
      12                 :            :  * License.
      13                 :            :  *
      14                 :            :  * Major Contributor(s):
      15                 :            :  * Copyright (C) 2011 SUSE <cbosdonnat@suse.com>
      16                 :            :  *
      17                 :            :  *
      18                 :            :  * All Rights Reserved.
      19                 :            :  *
      20                 :            :  * For minor contributions see the git repository.
      21                 :            :  *
      22                 :            :  * Alternatively, the contents of this file may be used under the terms of
      23                 :            :  * either the GNU General Public License Version 2 or later (the "GPLv2+"), or
      24                 :            :  * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
      25                 :            :  * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
      26                 :            :  * instead of those above.
      27                 :            :  */
      28                 :            : #ifndef _OBJECT_TYPE_HXX_
      29                 :            : #define _OBJECT_TYPE_HXX_
      30                 :            : 
      31                 :            : #include <boost/shared_ptr.hpp>
      32                 :            : 
      33                 :            : #include <string>
      34                 :            : #include <vector>
      35                 :            : 
      36                 :            : #include "exception.hxx"
      37                 :            : #include "property-type.hxx"
      38                 :            : 
      39                 :            : namespace libcmis
      40                 :            : {
      41                 :            :     /** Class representing a CMIS object type definition.
      42                 :            :       */
      43                 :            :     class ObjectType
      44                 :            :     {
      45                 :            :         public:
      46                 :            : 
      47                 :            :             enum ContentStreamAllowed
      48                 :            :             {
      49                 :            :                 NotAllowed,
      50                 :            :                 Allowed,
      51                 :            :                 Required
      52                 :            :             };
      53                 :            : 
      54                 :          0 :             virtual ~ObjectType() { };
      55                 :            : 
      56                 :            :             virtual std::string getId( ) = 0;
      57                 :            :             virtual std::string getLocalName( ) = 0;
      58                 :            :             virtual std::string getLocalNamespace( ) = 0;
      59                 :            :             virtual std::string getDisplayName( ) = 0;
      60                 :            :             virtual std::string getQueryName( ) = 0;
      61                 :            :             virtual std::string getDescription( ) = 0;
      62                 :            : 
      63                 :            :             virtual boost::shared_ptr< ObjectType >  getParentType( ) throw ( Exception ) = 0;
      64                 :            :             virtual boost::shared_ptr< ObjectType >  getBaseType( ) throw ( Exception ) = 0;
      65                 :            :             virtual std::vector< boost::shared_ptr< ObjectType > > getChildren( ) throw ( Exception ) = 0;
      66                 :            :             
      67                 :            :             virtual bool isCreatable( ) = 0;
      68                 :            :             virtual bool isFileable( ) = 0;
      69                 :            :             virtual bool isQueryable( ) = 0;
      70                 :            :             virtual bool isFulltextIndexed( ) = 0;
      71                 :            :             virtual bool isIncludedInSupertypeQuery( ) = 0;
      72                 :            :             virtual bool isControllablePolicy( ) = 0;
      73                 :            :             virtual bool isControllableACL( ) = 0;
      74                 :            :             virtual bool isVersionable( ) = 0;
      75                 :            :             virtual ContentStreamAllowed getContentStreamAllowed( ) = 0;
      76                 :            : 
      77                 :            :             virtual std::map< std::string, PropertyTypePtr >& getPropertiesTypes( ) = 0;
      78                 :            : 
      79                 :            :             virtual std::string toString( ) = 0; 
      80                 :            :     };
      81                 :            : 
      82                 :            :     typedef ::boost::shared_ptr< ObjectType > ObjectTypePtr;
      83                 :            : }
      84                 :            : 
      85                 :            : #endif

Generated by: LCOV version 1.10