Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcocoaapplicationdelegate.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
5/****************************************************************************
6 **
7 ** Copyright (c) 2007-2008, Apple, Inc.
8 **
9 ** All rights reserved.
10 **
11 ** Redistribution and use in source and binary forms, with or without
12 ** modification, are permitted provided that the following conditions are met:
13 **
14 ** * Redistributions of source code must retain the above copyright notice,
15 ** this list of conditions and the following disclaimer.
16 **
17 ** * Redistributions in binary form must reproduce the above copyright notice,
18 ** this list of conditions and the following disclaimer in the documentation
19 ** and/or other materials provided with the distribution.
20 **
21 ** * Neither the name of Apple, Inc. nor the names of its contributors
22 ** may be used to endorse or promote products derived from this software
23 ** without specific prior written permission.
24 **
25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
29 ** CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30 ** EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31 ** PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32 ** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33 ** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34 ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 **
37 ****************************************************************************/
38
39//
40// W A R N I N G
41// -------------
42//
43// This file is not part of the Qt API. It exists for the convenience
44// of qapplication_*.cpp, qwidget*.cpp, qcolor_x11.cpp, qfiledialog.cpp
45// and many other. This header file may change from version to version
46// without notice, or even be removed.
47//
48// We mean it.
49//
50
51#ifndef QCOCOAAPPLICATIONDELEGATE_H
52#define QCOCOAAPPLICATIONDELEGATE_H
53
54#include <qglobal.h>
55#include <private/qcore_mac_p.h>
56
57#include "qcocoansmenu.h"
58
60@property (nonatomic, retain) NSMenu *dockMenu;
61+ (instancetype)sharedDelegate;
62- (void)setReflectionDelegate:(NSObject<NSApplicationDelegate> *)oldDelegate;
63- (void)removeAppleEventHandlers;
64- (bool)inLaunch;
65)
66
67#if defined(__OBJC__)
68@interface QCocoaApplicationDelegate (MenuAPI)
69- (void)qt_itemFired:(QCocoaNSMenuItem *)item;
70@end
71#endif
72
73#endif // QCOCOAAPPLICATIONDELEGATE_H
#define QT_DECLARE_NAMESPACED_OBJC_INTERFACE(classname, definition)
Definition qcore_mac_p.h:70
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void