25 #ifndef KSTARTUPINFO_H
26 #define KSTARTUPINFO_H
30 #include <QtCore/QObject>
31 #include <QtCore/QString>
32 #include <QtCore/QChildEvent>
33 #include <QtGui/QWidgetList>
35 #include <sys/types.h>
37 #if !defined(Q_WS_X11)
76 static void disableAutoAppStartedSending(
bool disable =
true );
85 static void appStarted();
91 static void appStarted(
const QByteArray& startup_id );
101 static void setNewStartupId(
QWidget* window,
const QByteArray& startup_id );
111 static void silenceStartup(
bool silence );
117 static QByteArray createNewStartupId();
122 CleanOnCantDetect = 1 << 0,
123 DisableKWinModule = 1 << 1,
124 AnnounceSilenceChanges = 1 << 2
217 static bool sendFinishX( Display* dpy,
const KStartupInfoId&
id );
248 static void resetStartupEnv();
261 startup_t checkStartup( WId w );
291 void setTimeout(
unsigned int secs );
297 static void setWindowStartupId( WId window,
const QByteArray&
id );
303 static QByteArray windowStartupId( WId w );
307 static void handleAutoAppStartedSending();
343 virtual void customEvent( QEvent* e_P );
346 Q_PRIVATE_SLOT(d,
void startups_cleanup())
347 Q_PRIVATE_SLOT(d,
void startups_cleanup_no_age())
348 Q_PRIVATE_SLOT(d,
void got_message( const
QString& msg ))
349 Q_PRIVATE_SLOT(d,
void window_added( WId w ))
350 Q_PRIVATE_SLOT(d,
void slot_window_added( WId w ))
375 bool operator==(
const KStartupInfoId&
id )
const;
380 bool operator!=(
const KStartupInfoId&
id )
const;
393 void initId(
const QByteArray&
id =
"" );
398 const QByteArray& id()
const;
403 unsigned long timestamp()
const;
408 bool setupStartupEnv()
const;
416 KStartupInfoId(
const KStartupInfoId& data );
418 KStartupInfoId& operator=(
const KStartupInfoId& data );
419 bool operator<(
const KStartupInfoId&
id )
const;
421 explicit KStartupInfoId(
const QString& txt );
422 friend class KStartupInfo;
423 friend class KStartupInfo::Private;
446 void setBin(
const QString& bin );
461 const QString& findName()
const;
473 void setDescription(
const QString& descr );
479 const QString& findDescription()
const;
485 const QString& description()
const;
490 void setIcon(
const QString& icon );
497 const QString& findIcon()
const;
508 void setDesktop(
int desktop );
520 void setWMClass(
const QByteArray& wmclass );
527 const QByteArray findWMClass()
const;
533 QByteArray WMClass()
const;
541 void addPid( pid_t pid );
552 bool is_pid( pid_t pid )
const;
558 void setHostname(
const QByteArray& hostname = QByteArray());
563 QByteArray hostname()
const;
574 void setSilent( TriState state );
580 TriState silent()
const;
590 void setTimestamp(
unsigned long time );
597 unsigned long timestamp()
const;
608 void setScreen(
int screen );
613 int xinerama()
const;
620 void setXinerama(
int xinerama );
626 WId launchedBy()
const;
632 void setLaunchedBy( WId window );
645 void setApplicationId(
const QString& desktop );
668 friend class KStartupInfo::Data;
669 friend class KStartupInfo::Private;
Class for manipulating the application startup notification.
bool operator<(const KEntryKey &k1, const KEntryKey &k2)
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Class representing an identification of application startup notification.
bool operator!=(const KEntry &k1, const KEntry &k2)
bool operator==(const KEntry &k1, const KEntry &k2)
Class representing data about an application startup notification.