File indexing completed on 2021-12-21 13:19:38

0001 /* This file is part of the dbusmenu-qt library
0002    Copyright 2009 Canonical
0003    Author: Aurelien Gateau <aurelien.gateau@canonical.com>
0004 
0005    This library is free software; you can redistribute it and/or
0006    modify it under the terms of the GNU Library General Public
0007    License (LGPL) as published by the Free Software Foundation;
0008    either version 2 of the License, or (at your option) any later
0009    version.
0010 
0011    This library is distributed in the hope that it will be useful,
0012    but WITHOUT ANY WARRANTY; without even the implied warranty of
0013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014    Library General Public License for more details.
0015 
0016    You should have received a copy of the GNU Library General Public License
0017    along with this library; see the file COPYING.LIB.  If not, write to
0018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0019    Boston, MA 02110-1301, USA.
0020 */
0021 #ifndef DBUSMENUEXPORTERTEST_H
0022 #define DBUSMENUEXPORTERTEST_H
0023 
0024 #define QT_GUI_LIB
0025 #include <QtGui>
0026 
0027 // Qt
0028 #include <QObject>
0029 
0030 // Local
0031 
0032 class DBusMenuExporterTest : public QObject
0033 {
0034 Q_OBJECT
0035 private Q_SLOTS:
0036     void testGetSomeProperties();
0037     void testGetSomeProperties_data();
0038     void testGetAllProperties();
0039     void testGetNonExistentProperty();
0040     void testClickedEvent();
0041     void testSubMenu();
0042     void testDynamicSubMenu();
0043     void testRadioItems();
0044     void testNonExclusiveActionGroup();
0045     void testClickDeletedAction();
0046     void testDeleteExporterBeforeMenu();
0047     void testUpdateAndDeleteSubMenu();
0048     void testMenuShortcut();
0049     void testGetGroupProperties();
0050     void testActivateAction();
0051     void testTrackActionsOnlyOnce();
0052     void testHonorDontShowIconsInMenusAttribute();
0053     void testDBusMenuObjectIsDeletedWhenExporterIsDeleted();
0054     void testSeparatorCollapsing_data();
0055     void testSeparatorCollapsing();
0056     void testSetStatus();
0057     void testGetIconDataProperty();
0058 
0059     void init();
0060     void cleanup();
0061 };
0062 
0063 #endif /* DBUSMENUEXPORTERTEST_H */