QtBase  v6.3.1
Classes | Macros | Typedefs | Functions
qcore_mac_p.h File Reference
#include "private/qglobal_p.h"
#include <QtCore/qoperatingsystemversion.h>
#include <CoreFoundation/CoreFoundation.h>
#include "qstring.h"
#include "qscopedpointer.h"
#include "qpair.h"
#include <os/log.h>
#include <os/activity.h>
Include dependency graph for qcore_mac_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >
 
class  QCFType< T >
 
class  QCFString
 
class  AppleUnifiedLogger
 
class  QAppleLogActivity
 
class  QMacNotificationObserver
 
class  QMacKeyValueObserver
 
class  QMacVersion
 

Macros

#define __IMAGECAPTURE__
 
#define QT_NAMESPACE_ALIAS_OBJC_CLASS(__KLASS__)
 
#define QT_MAC_WEAK_IMPORT(symbol)   extern "C" decltype(symbol) symbol __attribute__((weak_import));
 
#define QT_DECLARE_NAMESPACED_OBJC_INTERFACE(classname, definition)
 
#define QT_FORWARD_DECLARE_OBJC_ENUM(name, type)    typedef type name;
 
#define QtExtras   QT_MANGLE_NAMESPACE(QtExtras)
 
#define QT_USE_APPLE_UNIFIED_LOGGING
 
#define QT_APPLE_LOG_ACTIVITY_CREATE(condition, description, parent)
 
#define QT_APPLE_LOG_ACTIVITY_WITH_PARENT_3(condition, description, parent)   QT_APPLE_LOG_ACTIVITY_CREATE(condition, description, parent)
 
#define QT_APPLE_LOG_ACTIVITY_WITH_PARENT_2(description, parent)   QT_APPLE_LOG_ACTIVITY_WITH_PARENT_3(true, description, parent)
 
#define QT_APPLE_LOG_ACTIVITY_WITH_PARENT(...)   QT_OVERLOADED_MACRO(QT_APPLE_LOG_ACTIVITY_WITH_PARENT, __VA_ARGS__)
 
#define QT_APPLE_LOG_ACTIVITY_2(condition, description)   QT_APPLE_LOG_ACTIVITY_CREATE(condition, description, OS_ACTIVITY_CURRENT)
 
#define QT_APPLE_LOG_ACTIVITY_1(description)   QT_APPLE_LOG_ACTIVITY_2(true, description)
 
#define QT_APPLE_LOG_ACTIVITY(...)   QT_OVERLOADED_MACRO(QT_APPLE_LOG_ACTIVITY, __VA_ARGS__)
 
#define QT_APPLE_SCOPED_LOG_ACTIVITY(...)   QAppleLogActivity scopedLogActivity = QT_APPLE_LOG_ACTIVITY(__VA_ARGS__).enter();
 

Typedefs

using AppleApplication = UIApplication
 
template<typename T >
using QAppleOsType = QAppleRefCounted< T, void *, os_retain, os_release >
 

Functions

 Q_FORWARD_DECLARE_OBJC_CLASS (NSObject)
 
 Q_FORWARD_DECLARE_OBJC_CLASS (NSString)
 
Q_CORE_EXPORT QDebug operator<< (QDebug debug, const QMacAutoReleasePool *pool)
 
Q_CORE_EXPORT QDebug operator<< (QDebug debug, const QCFString &string)
 
Q_CORE_EXPORT bool qt_apple_isApplicationExtension ()
 
Q_CORE_EXPORT bool qt_apple_isSandboxed ()
 
QT_END_NAMESPACE Q_FORWARD_DECLARE_OBJC_CLASS (UIApplication)
 
QT_BEGIN_NAMESPACE Q_CORE_EXPORT AppleApplicationqt_apple_sharedApplication ()
 
 QT_MAC_WEAK_IMPORT (_os_activity_current)
 

Macro Definition Documentation

◆ __IMAGECAPTURE__

#define __IMAGECAPTURE__

Definition at line 70 of file qcore_mac_p.h.

◆ QT_APPLE_LOG_ACTIVITY

#define QT_APPLE_LOG_ACTIVITY (   ...)    QT_OVERLOADED_MACRO(QT_APPLE_LOG_ACTIVITY, __VA_ARGS__)

Definition at line 336 of file qcore_mac_p.h.

◆ QT_APPLE_LOG_ACTIVITY_1

#define QT_APPLE_LOG_ACTIVITY_1 (   description)    QT_APPLE_LOG_ACTIVITY_2(true, description)

Definition at line 335 of file qcore_mac_p.h.

◆ QT_APPLE_LOG_ACTIVITY_2

#define QT_APPLE_LOG_ACTIVITY_2 (   condition,
  description 
)    QT_APPLE_LOG_ACTIVITY_CREATE(condition, description, OS_ACTIVITY_CURRENT)

Definition at line 334 of file qcore_mac_p.h.

◆ QT_APPLE_LOG_ACTIVITY_CREATE

#define QT_APPLE_LOG_ACTIVITY_CREATE (   condition,
  description,
  parent 
)
Value:
[]() { \
if (!(condition)) \
return QAppleLogActivity(); \
return QAppleLogActivity(os_activity_create(description, parent, OS_ACTIVITY_FLAG_DEFAULT)); \
}()
GLenum condition
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent

Definition at line 323 of file qcore_mac_p.h.

◆ QT_APPLE_LOG_ACTIVITY_WITH_PARENT

#define QT_APPLE_LOG_ACTIVITY_WITH_PARENT (   ...)    QT_OVERLOADED_MACRO(QT_APPLE_LOG_ACTIVITY_WITH_PARENT, __VA_ARGS__)

Definition at line 331 of file qcore_mac_p.h.

◆ QT_APPLE_LOG_ACTIVITY_WITH_PARENT_2

#define QT_APPLE_LOG_ACTIVITY_WITH_PARENT_2 (   description,
  parent 
)    QT_APPLE_LOG_ACTIVITY_WITH_PARENT_3(true, description, parent)

Definition at line 330 of file qcore_mac_p.h.

◆ QT_APPLE_LOG_ACTIVITY_WITH_PARENT_3

#define QT_APPLE_LOG_ACTIVITY_WITH_PARENT_3 (   condition,
  description,
  parent 
)    QT_APPLE_LOG_ACTIVITY_CREATE(condition, description, parent)

Definition at line 329 of file qcore_mac_p.h.

◆ QT_APPLE_SCOPED_LOG_ACTIVITY

#define QT_APPLE_SCOPED_LOG_ACTIVITY (   ...)    QAppleLogActivity scopedLogActivity = QT_APPLE_LOG_ACTIVITY(__VA_ARGS__).enter();

Definition at line 338 of file qcore_mac_p.h.

◆ QT_DECLARE_NAMESPACED_OBJC_INTERFACE

#define QT_DECLARE_NAMESPACED_OBJC_INTERFACE (   classname,
  definition 
)
Value:
Q_FORWARD_DECLARE_OBJC_CLASS(QT_MANGLE_NAMESPACE(classname)); \
using classname = QT_MANGLE_NAMESPACE(classname);
Q_FORWARD_DECLARE_OBJC_CLASS(NSObject)

Definition at line 105 of file qcore_mac_p.h.

◆ QT_FORWARD_DECLARE_OBJC_ENUM

#define QT_FORWARD_DECLARE_OBJC_ENUM (   name,
  type 
)     typedef type name;

Definition at line 110 of file qcore_mac_p.h.

◆ QT_MAC_WEAK_IMPORT

#define QT_MAC_WEAK_IMPORT (   symbol)    extern "C" decltype(symbol) symbol __attribute__((weak_import));

Definition at line 96 of file qcore_mac_p.h.

◆ QT_NAMESPACE_ALIAS_OBJC_CLASS

#define QT_NAMESPACE_ALIAS_OBJC_CLASS (   __KLASS__)

Definition at line 93 of file qcore_mac_p.h.

◆ QT_USE_APPLE_UNIFIED_LOGGING

#define QT_USE_APPLE_UNIFIED_LOGGING

Definition at line 248 of file qcore_mac_p.h.

◆ QtExtras

#define QtExtras   QT_MANGLE_NAMESPACE(QtExtras)

Definition at line 117 of file qcore_mac_p.h.

Typedef Documentation

◆ AppleApplication

using AppleApplication = UIApplication

Definition at line 239 of file qcore_mac_p.h.

◆ QAppleOsType

template<typename T >
using QAppleOsType = QAppleRefCounted<T, void *, os_retain, os_release>

Definition at line 275 of file qcore_mac_p.h.

Function Documentation

◆ operator<<() [1/2]

Q_CORE_EXPORT QDebug operator<< ( QDebug  debug,
const QCFString string 
)

◆ operator<<() [2/2]

Q_CORE_EXPORT QDebug operator<< ( QDebug  debug,
const QMacAutoReleasePool *  pool 
)

◆ Q_FORWARD_DECLARE_OBJC_CLASS() [1/3]

Q_FORWARD_DECLARE_OBJC_CLASS ( NSObject  )

◆ Q_FORWARD_DECLARE_OBJC_CLASS() [2/3]

Q_FORWARD_DECLARE_OBJC_CLASS ( NSString  )

◆ Q_FORWARD_DECLARE_OBJC_CLASS() [3/3]

QT_END_NAMESPACE Q_FORWARD_DECLARE_OBJC_CLASS ( UIApplication  )

◆ qt_apple_isApplicationExtension()

Q_CORE_EXPORT bool qt_apple_isApplicationExtension ( )
Here is the caller graph for this function:

◆ qt_apple_isSandboxed()

Q_CORE_EXPORT bool qt_apple_isSandboxed ( )
Here is the caller graph for this function:

◆ qt_apple_sharedApplication()

QT_BEGIN_NAMESPACE Q_CORE_EXPORT AppleApplication* qt_apple_sharedApplication ( )
Here is the caller graph for this function:

◆ QT_MAC_WEAK_IMPORT()

QT_MAC_WEAK_IMPORT ( _os_activity_current  )