~neon/pykde4/master

« back to all changes in this revision

Viewing changes to sip/kdecore/kaboutdata.sip

  • Committer: Simon Edwards
  • Date: 2007-09-02 19:43:19 UTC
  • Revision ID: git-v1:6b8df0c7009f6b218f54589a9bc313cd8c4f82b9

Initial drop of PyKDE4 - Python bindings for the KDE API. See the README file
for more info about the current state of PyKDE4.


svn path=/trunk/KDE/kdebindings/python/pykde4/; revision=707731

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
//     Copyright 2007 Jim Bublitz <jbublitz@nwinternet.com>
 
3
//     Earlier copyrights 1998 - 2006 Jim Bublitz also apply
 
4
 
 
5
 
 
6
//                 Generated by preSip
 
7
//            PyKDE4 module kdecore  version KDE 3.92.0
 
8
 
 
9
 
 
10
// This file is part of PyKDE4.
 
11
 
 
12
// PyKDE4 is free software; you can redistribute it and/or modify
 
13
// it under the terms of the GNU Lesser General Public License as
 
14
// published by the Free Software Foundation; either version 2.1 of
 
15
// the License, or (at your option) any later version.
 
16
 
 
17
// PyKDE4 is distributed in the hope that it will be useful,
 
18
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
// GNU General Public License for more details.
 
21
 
 
22
// You should have received a copy of the GNU General Public License
 
23
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
24
 
 
25
 
 
26
class KAboutPerson
 
27
{
 
28
%TypeHeaderCode
 
29
#include <kaboutdata.h>
 
30
%End
 
31
 
 
32
 
 
33
public:
 
34
                         KAboutPerson (const KLocalizedString&, const KLocalizedString& = KLocalizedString (), const QByteArray& = QByteArray (), const QByteArray& = QByteArray ());
 
35
                         KAboutPerson (const KAboutPerson&);
 
36
    QString              name () const;
 
37
    QString              task () const;
 
38
    QString              emailAddress () const;
 
39
    QString              webAddress () const;
 
40
 
 
41
private:
 
42
                         KAboutPerson (const QString&, const QString&);
 
43
 
 
44
};  // class KAboutPerson
 
45
 
 
46
 
 
47
class KAboutData
 
48
{
 
49
%TypeHeaderCode
 
50
#include <kaboutdata.h>
 
51
%End
 
52
 
 
53
 
 
54
public:
 
55
 
 
56
    enum LicenseKey
 
57
    {
 
58
        License_Custom, 
 
59
        License_File, 
 
60
        License_Unknown, 
 
61
        License_GPL, 
 
62
        License_GPL_V2, 
 
63
        License_LGPL, 
 
64
        License_LGPL_V2, 
 
65
        License_BSD, 
 
66
        License_Artistic, 
 
67
        License_QPL, 
 
68
        License_QPL_V1_0
 
69
    };
 
70
 
 
71
 
 
72
    enum NameFormat
 
73
    {
 
74
        ShortName, 
 
75
        FullName
 
76
    };
 
77
 
 
78
 
 
79
public:
 
80
                         KAboutData (const QByteArray&, const QByteArray&, const KLocalizedString&, const QByteArray&, const KLocalizedString& = KLocalizedString (), KAboutData::LicenseKey = KAboutData::License_Unknown , const KLocalizedString& = KLocalizedString (), const KLocalizedString& = KLocalizedString (), const QByteArray& = QByteArray (), const QByteArray& = "submit@bugs.kde.org");
 
81
                         KAboutData (const KAboutData&);
 
82
    KAboutData&          addAuthor (const KLocalizedString&, const KLocalizedString& = KLocalizedString (), const QByteArray& = QByteArray (), const QByteArray& = QByteArray ());
 
83
    KAboutData&          addCredit (const KLocalizedString&, const KLocalizedString& = KLocalizedString (), const QByteArray& = QByteArray (), const QByteArray& = QByteArray ());
 
84
    KAboutData&          setTranslator (const KLocalizedString&, const KLocalizedString&);
 
85
    KAboutData&          setLicenseText (const KLocalizedString&);
 
86
    KAboutData&          setLicenseTextFile (const QString&);
 
87
    KAboutData&          setAppName (const QByteArray&);
 
88
    KAboutData&          setProgramName (const KLocalizedString&);
 
89
    KAboutData&          setProgramLogo (const QVariant&);
 
90
    KAboutData&          setVersion (const QByteArray&);
 
91
    KAboutData&          setShortDescription (const KLocalizedString&);
 
92
    KAboutData&          setCatalogName (const QByteArray&);
 
93
    KAboutData&          setLicense (KAboutData::LicenseKey);
 
94
    KAboutData&          setCopyrightStatement (const KLocalizedString&);
 
95
    KAboutData&          setOtherText (const KLocalizedString&);
 
96
    KAboutData&          setHomepage (const QByteArray&);
 
97
    KAboutData&          setBugAddress (const QByteArray&);
 
98
    KAboutData&          setOrganizationDomain (const QByteArray&);
 
99
    KAboutData&          setProductName (const QByteArray&);
 
100
    QString              appName () const;
 
101
    QString              productName () const;
 
102
    QString              programName () const;
 
103
    QString              organizationDomain () const;
 
104
    const char*          internalProgramName () const;
 
105
    void                 translateInternalProgramName () const;
 
106
    QVariant             programLogo () const;
 
107
    QString              version () const;
 
108
    const char*          internalVersion () const;
 
109
    QString              shortDescription () const;
 
110
    QString              catalogName () const;
 
111
    QString              homepage () const;
 
112
    QString              bugAddress () const;
 
113
    const char*          internalBugAddress () const;
 
114
    const QList<KAboutPerson> authors () const;
 
115
    const QList<KAboutPerson> credits () const;
 
116
    QList<KAboutPerson>  translators () const;
 
117
    static QString       aboutTranslationTeam ();
 
118
    QString              otherText () const;
 
119
    QString              license () const;
 
120
    QString              licenseName (KAboutData::NameFormat) const;
 
121
    QString              copyrightStatement () const;
 
122
    QString              customAuthorPlainText () const;
 
123
    QString              customAuthorRichText () const;
 
124
    bool                 customAuthorTextEnabled () const;
 
125
    KAboutData&          setCustomAuthorText (const KLocalizedString&, const KLocalizedString&);
 
126
    KAboutData&          unsetCustomAuthorText ();
 
127
 
 
128
};  // class KAboutData
 
129