This file is indexed.

/usr/share/sip/PyKDE4/kdeui/knotification.sip is in python-kde4-dev 4:4.13.0-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
//
//     Copyright 2008 Jim Bublitz <jbublitz@nwinternet.com>
//     Earlier copyrights 1998 - 2007 Jim Bublitz also apply

//                 Generated by twine

// This file is part of PyKDE4.

// PyKDE4 is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of
// the License, or (at your option) any later version.

// PyKDE4 is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.


class KNotification : QObject
{
%TypeHeaderCode
#include <knotification.h>
%End


public:
    typedef QPair<QString,QString> Context;

//ig    typedef QList<KNotification::Context> ContextList;


    enum NotificationFlag
    {
        RaiseWidgetOnActivation,
        CloseOnTimeout,
        Persistent,
        CloseWhenWidgetActivated,
        Persistant,
        DefaultEvent
    };

    typedef QFlags<KNotification::NotificationFlag> NotificationFlags;


    enum StandardEvent
    {
        Notification,
        Warning,
        Error,
        Catastrophe
    };

    explicit                KNotification (const QString& eventId, QWidget* widget = 0, const KNotification::NotificationFlags& flags = KNotification::CloseOnTimeout);
    QWidget*                widget () const;
    void                    setWidget (QWidget* widget);
    QString                 eventId () const;
    QString                 title () const;
    void                    setTitle (const QString& title);
    QString                 text () const;
    void                    setText (const QString& text);
    QPixmap                 pixmap () const;
    void                    setPixmap (const QPixmap& pix);
    QStringList             actions () const;
    void                    setActions (const QStringList& actions);
    KNotification::ContextList  contexts () const;
    void                    setContexts (const KNotification::ContextList& contexts);
    void                    addContext (const KNotification::Context& context);
    void                    addContext (const QString& context_key, const QString& context_value);
    KNotification::NotificationFlags  flags () const;
    void                    setFlags (const KNotification::NotificationFlags& flags);
    void                    setComponentData (const KComponentData& componentData);

signals:
    void                    activated ();
    void                    activated (unsigned int action);
    void                    action1Activated ();
    void                    action2Activated ();
    void                    action3Activated ();
    void                    closed ();
    void                    ignored ();

public:
    void                    activate (unsigned int action = 0);
    void                    close ();
    void                    raiseWidget ();
    void                    ref ();
    void                    deref ();
    void                    sendEvent ();
    void                    update ();

protected:
    virtual bool            eventFilter (QObject* watched, QEvent* event);

public:
    static KNotification*   event (const QString& eventId, const QString& text = QString(), const QPixmap& pixmap = QPixmap(), QWidget* widget = 0, const KNotification::NotificationFlags& flags = KNotification::CloseOnTimeout, const KComponentData& componentData = KComponentData());
    static KNotification*   event (KNotification::StandardEvent eventId, const QString& text = QString(), const QPixmap& pixmap = QPixmap(), QWidget* widget = 0, const KNotification::NotificationFlags& flags = KNotification::CloseOnTimeout);
    static void             beep (const QString& reason = QString(), QWidget* widget = 0);

//force
    typedef QList<QPair<QString,QString>> ContextList;


//end
    ~KNotification ();
    explicit                KNotification (const QString& eventId, const KNotification::NotificationFlags& flags, QObject* parent /TransferThis/ = NULL);
    static KNotification*   event (const QString& eventId, const QString& title, const QString& text, const QPixmap& pixmap = QPixmap(), QWidget* widget = 0, const KNotification::NotificationFlags& flags = KNotification::CloseOnTimeout, const KComponentData& componentData = KComponentData());
    static KNotification*   event (KNotification::StandardEvent eventId, const QString& title, const QString& text, const QPixmap& pixmap = QPixmap(), QWidget* widget = 0, const KNotification::NotificationFlags& flags = KNotification::CloseOnTimeout);
};
// KNotification