~ubuntu-branches/ubuntu/saucy/libwpd/saucy

« back to all changes in this revision

Viewing changes to src/lib/WP3Resource.h

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2011-11-29 23:31:13 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20111129233113-xdtwca9h0y6wdxst
Tags: 0.9.4-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
1
2
/* libwpd
2
3
 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
3
4
 * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
4
 
 *  
 
5
 *
5
6
 * This library is free software; you can redistribute it and/or
6
7
 * modify it under the terms of the GNU Library General Public
7
8
 * License as published by the Free Software Foundation; either
19
20
 * For further information visit http://libwpd.sourceforge.net
20
21
 */
21
22
 
22
 
/* "This product is not manufactured, approved, or supported by 
 
23
/* "This product is not manufactured, approved, or supported by
23
24
 * Corel Corporation or Corel Corporation Limited."
24
25
 */
25
26
 
37
38
{
38
39
public:
39
40
        WP3Resource(uint32_t resourceType, uint32_t resourceReferenceID, const WPXString resourceName,
40
 
                uint8_t resourceAttributes, const WPXBinaryData m_resource);    
 
41
                    uint8_t resourceAttributes, const WPXBinaryData m_resource);
41
42
        virtual ~WP3Resource() {}
42
43
 
43
44
        const WPXString getResourceTypeString() const;
44
 
        uint32_t getResourceType() const { return m_resourceType; }
45
 
        uint32_t getResourceReferenceID() const { return m_resourceReferenceID; }
46
 
        const WPXString& getResourceName() const { return m_resourceName; }
47
 
        uint8_t getResourceAttributes() const { return m_resourceAttributes; }
48
 
        const WPXBinaryData& getResourceData() const { return m_resourceData; }
49
 
 
 
45
        uint32_t getResourceType() const
 
46
        {
 
47
                return m_resourceType;
 
48
        }
 
49
        uint32_t getResourceReferenceID() const
 
50
        {
 
51
                return m_resourceReferenceID;
 
52
        }
 
53
        const WPXString &getResourceName() const
 
54
        {
 
55
                return m_resourceName;
 
56
        }
 
57
        uint8_t getResourceAttributes() const
 
58
        {
 
59
                return m_resourceAttributes;
 
60
        }
 
61
        const WPXBinaryData &getResourceData() const
 
62
        {
 
63
                return m_resourceData;
 
64
        }
 
65
 
50
66
private:
51
67
        uint32_t m_resourceType;
52
68
        uint32_t m_resourceReferenceID;
56
72
};
57
73
 
58
74
#endif /* WP3RESOURCE_H */
 
75
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */