/usr/include/kopete/kopeteinfoevent.h is in libkopete-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 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | /*
kopeteinfoevent.h - Kopete Info Event
Copyright (c) 2008 by Roman Jarosz <kedgedev@centrum.cz>
Kopete (c) 2008 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* *
* This library 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 of the License, or (at your option) any later version. *
* *
*************************************************************************
*/
#ifndef KOPETEINFOEVENT_H
#define KOPETEINFOEVENT_H
#include <QtCore/QMap>
#include <QtCore/QObject>
#include <QtCore/QString>
#include "kopete_export.h"
namespace Kopete {
/**
* Base class for all Info Events
*
* The info event will be shown in non-intrusive way
* to user in Kopete Main Window.
*
* You have to use sendEvent to show the event.
*
* The pointer is automatically deleted when the event is closed.
*
* @author Roman Jarosz <kedgedev@centrum.cz>
*/
class KOPETE_EXPORT InfoEvent : public QObject
{
Q_OBJECT
public:
InfoEvent( QObject *parent = 0 );
~InfoEvent();
/**
* @return the Info Event title
*/
QString title() const;
/**
* Set the Info Event title.
* @param title the title
*/
void setTitle( const QString& title );
/**
* @return the Info Event text
*/
QString text() const;
/**
* Set the Info Event text.
*
* The text is shown in a QLabel, you should make sure to escape any html that is needed.
* You can use some of the qt basic html tags.
*
* This text will also be shown in KNotification popup
*
* @param text the text
*/
void setText( const QString& text );
/**
* @return the additional text
*/
QString additionalText() const;
/**
* Set the additional text.
*
* This is only shown in InfoEditWidget
*
* @param text the additional text
*/
void setAdditionalText( const QString& text );
/**
* @return the list of actions
*/
QMap<uint, QString> actions() const;
/**
* Set the list of actions link.
* @param actions the list of actions
*/
void addAction( uint actionId, const QString& actionText );
/**
* @return true if event should automatically be shown in contact list window
*/
bool showOnSend() const;
/**
* Set if event should automatically be shown in contact list window.
* @param showOnSend the show flag
*/
void setShowOnSend( bool showOnSend );
/**
* @return true if event has been closed and is scheduled for deletion.
*/
bool isClosed() const;
public Q_SLOTS:
/**
* Emit the event.
*/
virtual void sendEvent();
/**
* Activate the action specified action
*/
virtual void activate( uint actionId );
/**
* Close the info event.
*
* This will delete the info event.
*/
void close();
Q_SIGNALS:
/**
* User visible data has been changed.
*/
void changed();
/**
* A action has been activated. This signal is only emitted if
* activate( uint ) is not replaced.
* @param actionId is the id of the activated action.
*/
void actionActivated( uint actionId );
/**
* Emitted when the info event is closed.
*/
void eventClosed( Kopete::InfoEvent* event );
private:
class Private;
Private * const d;
};
}
#endif
|