~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to server/vm/asName.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2008-10-13 14:29:49 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20081013142949-f6qdvnu4mn05ltdc
Tags: 0.8.4~~bzr9980-0ubuntu1
* new upstream release 0.8.4 (LP: #240325)
* ship new lib usr/lib/gnash/libmozsdk.so.* in mozilla-plugin-gnash
  - update debian/mozilla-plugin-gnash.install
* ship new lib usr/lib/gnash/libgnashnet.so.* in gnash-common
  - update debian/gnash-common.install
* add basic debian/build_head script to build latest CVS head packages.
  - add debian/build_head
* new sound architecture requires build depend on libsdl1.2-dev
  - update debian/control
* head build script now has been completely migrated to bzr (upstream +
  ubuntu)
  - update debian/build_head
* disable kde gui until klash/qt4 has been fixed; keep kde packages as empty
  packages for now.
  - update debian/rules
  - debian/klash.install
  - debian/klash.links
  - debian/klash.manpages
  - debian/konqueror-plugin-gnash.install
* drop libkonq5-dev build dependency accordingly
  - update debian/control
* don't install headers manually anymore. gnash doesnt provide a -dev
  package after all
  - update debian/rules
* update libs installed in gnash-common; libgnashserver-*.so is not available
  anymore (removed); in turn we add the new libgnashcore-*.so
  - update debian/gnash-common.install
* use -Os for optimization and properly pass CXXFLAGS=$(CFLAGS) to configure
  - update debian/rules
* touch firefox .autoreg in postinst of mozilla plugin
  - update debian/mozilla-plugin-gnash.postinst
* link gnash in ubufox plugins directory for the plugin alternative switcher
  - add debian/mozilla-plugin-gnash.links
* suggest ubufox accordingly
  - update debian/control
* add new required build-depends on libgif-dev
  - update debian/control
* add Xb-Npp-Description and Xb-Npp-File as new plugin database meta data
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//   Copyright (C) 2007, 2008 Free Software Foundation, Inc.
2
 
// 
3
 
// This program is free software; you can redistribute it and/or modify
4
 
// it under the terms of the GNU General Public License as published by
5
 
// the Free Software Foundation; either version 3 of the License, or
6
 
// (at your option) any later version.
7
 
// 
8
 
// This program is distributed in the hope that it will be useful,
9
 
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
// GNU General Public License for more details.
12
 
// 
13
 
// You should have received a copy of the GNU General Public License
14
 
// along with this program; if not, write to the Free Software
15
 
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16
 
 
17
 
#ifndef GNASH_AS_NAME_H
18
 
#define GNASH_AS_NAME_H
19
 
 
20
 
#include <vector>
21
 
 
22
 
namespace gnash {
23
 
 
24
 
class as_object;
25
 
 
26
 
class asName
27
 
{
28
 
public:
29
 
        /// If true, the name needs a run-time string value to complete it.
30
 
        bool isRuntime() { return (mFlags & FLAG_RTNAME) != 0; }
31
 
 
32
 
        /// If true, the name needs a run-time namespace to complete it.
33
 
        bool isRtns() { return (mFlags & FLAG_RTNS) != 0; }
34
 
 
35
 
        bool isQName() { return (mFlags & FLAG_QNAME) != 0; }
36
 
        void setQName() { mFlags |= FLAG_QNAME; }
37
 
 
38
 
        void setNamespace(asNamespace *ns) { mNamespace = ns; mPairName = 0; }
39
 
        asNamespace* getNamespace() const { return mNamespace; }
40
 
 
41
 
        string_table::key getName() const { return mName; }
42
 
        void setName(string_table::key n) { mName = n; mPairName = 0; }
43
 
 
44
 
        void setAttr() { mFlags |= FLAG_ATTR; }
45
 
 
46
 
        void fill(as_object*) {/*TODO*/}
47
 
 
48
 
        Property* findProperty();
49
 
 
50
 
        typedef enum
51
 
        {
52
 
                KIND_Qname = 0x07,
53
 
                KIND_QnameA = 0x0D,
54
 
                KIND_RTQname = 0x0F,
55
 
                KIND_RTQnameA = 0x10,
56
 
                KIND_RTQnameL = 0x11,
57
 
                KIND_RTQnameLA = 0x12,
58
 
                KIND_Multiname = 0x09,
59
 
                KIND_MultinameA = 0x0E,
60
 
                KIND_MultinameL = 0x1B,
61
 
                KIND_MultinameLA = 0x1C
62
 
        } kinds;
63
 
        typedef enum
64
 
        {
65
 
                FLAG_ATTR = 0x01,
66
 
                FLAG_QNAME = 0x02,
67
 
                FLAG_RTNS = 0x04,
68
 
                FLAG_RTNAME = 0x08,
69
 
                FLAG_NSSET = 0x10
70
 
        } flags;
71
 
 
72
 
        boost::uint8_t mFlags;
73
 
        std::vector<asNamespace*> *mNamespaceSet;
74
 
 
75
 
        asName() : mFlags(0), mNamespaceSet(NULL), mName(0), mPairName(0),
76
 
                mNamespace(NULL)
77
 
        {/**/}
78
 
private:
79
 
        string_table::key mName;
80
 
        string_table::key mPairName; // Pre-computed ns.name value
81
 
        asNamespace* mNamespace;
82
 
};
83
 
 
84
 
} // end of namespace gnash
85
 
#endif /* GNASH_AS_NAME_H */