~ubuntu-branches/ubuntu/oneiric/pykde4/oneiric-proposed

« back to all changes in this revision

Viewing changes to sip/khtml/dom_exception.sip

  • Committer: Bazaar Package Importer
  • Author(s): Romain Perier
  • Date: 2011-07-11 12:42:17 UTC
  • Revision ID: james.westby@ubuntu.com-20110711124217-stfa5thgiyis668w
Tags: upstream-4.6.90
ImportĀ upstreamĀ versionĀ 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
//     Copyright 2008 Jim Bublitz <jbublitz@nwinternet.com>
 
3
//     Earlier copyrights 1998 - 2007 Jim Bublitz also apply
 
4
 
 
5
//                 Generated by twine
 
6
 
 
7
// This file is part of PyKDE4.
 
8
 
 
9
// PyKDE4 is free software; you can redistribute it and/or modify
 
10
// it under the terms of the GNU Lesser General Public License as
 
11
// published by the Free Software Foundation; either version 2.1 of
 
12
// the License, or (at your option) any later version.
 
13
 
 
14
// PyKDE4 is distributed in the hope that it will be useful,
 
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
// GNU General Public License for more details.
 
18
 
 
19
// You should have received a copy of the GNU General Public License
 
20
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
 
 
22
namespace DOM
 
23
{
 
24
 
 
25
class DOMException
 
26
{
 
27
%TypeHeaderCode
 
28
#include <dom_exception.h>
 
29
%End
 
30
 
 
31
 
 
32
public:
 
33
                            DOMException (unsigned short _code);
 
34
                            DOMException (const DOM::DOMException& other);
 
35
 
 
36
    enum ExceptionCode
 
37
    {
 
38
        INDEX_SIZE_ERR,
 
39
        DOMSTRING_SIZE_ERR,
 
40
        HIERARCHY_REQUEST_ERR,
 
41
        WRONG_DOCUMENT_ERR,
 
42
        INVALID_CHARACTER_ERR,
 
43
        NO_DATA_ALLOWED_ERR,
 
44
        NO_MODIFICATION_ALLOWED_ERR,
 
45
        NOT_FOUND_ERR,
 
46
        NOT_SUPPORTED_ERR,
 
47
        INUSE_ATTRIBUTE_ERR,
 
48
        INVALID_STATE_ERR,
 
49
        SYNTAX_ERR,
 
50
        INVALID_MODIFICATION_ERR,
 
51
        NAMESPACE_ERR,
 
52
        INVALID_ACCESS_ERR,
 
53
        VALIDATION_ERR,
 
54
        TYPE_MISMATCH_ERR,
 
55
        SECURITY_ERR,
 
56
        NETWORK_ERR,
 
57
        ABORT_ERR,
 
58
        URL_MISMATCH_ERR,
 
59
        QUOTA_EXCEEDED_ERR,
 
60
        TIMEOUT_ERR,
 
61
        NOT_READABLE_ERR,
 
62
        DATA_CLONE_ERR,
 
63
        ENCODING_ERR
 
64
    };
 
65
 
 
66
    unsigned short code;
 
67
    ~DOMException ();
 
68
    DOM::DOMString          codeAsString () const;
 
69
    static DOM::DOMString   codeAsString (int code);
 
70
    static bool             isDOMExceptionCode (int exceptioncode);
 
71
};
 
72
// DOMException
 
73
 
 
74
};
 
75
// DOM
 
76
 
 
77