File: knotificationrestrictionstest.cpp

package info (click to toggle)
knotifications 5.78.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,244 kB
  • sloc: cpp: 5,507; java: 260; xml: 132; sh: 14; makefile: 12
file content (24 lines) | stat: -rw-r--r-- 562 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
    SPDX-FileCopyrightText: 2006 Aaron J. Seigo <aseigo@kde.org>

    SPDX-License-Identifier: LGPL-2.0-or-later
*/

#include <knotificationrestrictions.h>

#include <QApplication>
#include <QLabel>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QLabel *mainWidget = new QLabel();
    mainWidget->setText(QStringLiteral("You should see on console debug outpout for KNotificationRestrictions"));

    KNotificationRestrictions knr(KNotificationRestrictions::ScreenSaver, nullptr);

    mainWidget->show();
    return app.exec();
}