Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcore_mac.mm File Reference

(194565a371aca8c69a3cd0fd03b7fb2fcfcf5db3)

#include <private/qcore_mac_p.h>
#include <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
#include <new>
#include <execinfo.h>
#include <dlfcn.h>
#include <cxxabi.h>
#include <objc/runtime.h>
#include <mach-o/dyld.h>
#include <sys/sysctl.h>
#include <spawn.h>
#include <qdebug.h>
#include <qpoint.h>
#include <qsize.h>
#include <qrect.h>
#include <qmargins.h>
#include "qendian.h"
#include "qhash.h"
#include "qmutex.h"
#include "qvarlengtharray.h"
#include "private/qlocking_p.h"
#include <thread>
Include dependency graph for qcore_mac.mm:

Go to the source code of this file.

Macros

#define QT_DECLARE_WEAK_QDEBUG_OPERATOR_FOR_CF_TYPE(CFType)

Typedefs

typedef uint32_t csr_config_t

Functions

int csr_get_active_config (csr_config_t *) __attribute__((weak_import))
QDebug operator<< (QDebug dbg, id obj)
QDebug operator<< (QDebug dbg, const NSObject *nsObject)
QDebug operator<< (QDebug dbg, const NSString *nsString)
QDebug operator<< (QDebug dbg, CFStringRef stringRef)
QDebug operator<< (QDebug dbg, CGPoint point)
QDebug operator<< (QDebug dbg, CGSize size)
QDebug operator<< (QDebug dbg, CGRect rect)
QDebug operator<< (QDebug dbg, UIEdgeInsets insets)
 QT_FOR_EACH_CORE_FOUNDATION_TYPE (QT_DECLARE_WEAK_QDEBUG_OPERATOR_FOR_CF_TYPE)
 QT_FOR_EACH_MUTABLE_CORE_FOUNDATION_TYPE (QT_DECLARE_WEAK_QDEBUG_OPERATOR_FOR_CF_TYPE)
 QT_FOR_EACH_CORE_GRAPHICS_TYPE (QT_DECLARE_WEAK_QDEBUG_OPERATOR_FOR_CF_TYPE)
 QT_FOR_EACH_MUTABLE_CORE_GRAPHICS_TYPE (QT_DECLARE_WEAK_QDEBUG_OPERATOR_FOR_CF_TYPE)
QT_END_NAMESPACE QT_USE_NAMESPACE voidobjc_autoreleasePoolPush (void)
void objc_autoreleasePoolPop (void *pool)
QDebug operator<< (QDebug debug, const QMacAutoReleasePool *pool)
QDebug operator<< (QDebug debug, const QCFString &string)
bool qt_apple_isApplicationExtension ()
std::optional< UTType * > qt_apple_bundleType (const QString &path)
AppleApplicationqt_apple_sharedApplication ()
bool qt_apple_isSandboxed ()
QT_BEGIN_NAMESPACE void qt_apple_check_os_version ()
 Q_CONSTRUCTOR_FUNCTION (qt_apple_check_os_version)

Macro Definition Documentation

◆ QT_DECLARE_WEAK_QDEBUG_OPERATOR_FOR_CF_TYPE

#define QT_DECLARE_WEAK_QDEBUG_OPERATOR_FOR_CF_TYPE ( CFType)
Value:
__attribute__((weak)) Q_DECLARE_QDEBUG_OPERATOR_FOR_CF_TYPE(CFType)
struct capHdr __attribute__

Definition at line 269 of file qcore_mac.mm.

Typedef Documentation

◆ csr_config_t

typedef uint32_t csr_config_t

Definition at line 44 of file qcore_mac.mm.

Function Documentation

◆ csr_get_active_config()

int csr_get_active_config ( csr_config_t * )
extern

◆ objc_autoreleasePoolPop()

void objc_autoreleasePoolPop ( void * pool)

◆ objc_autoreleasePoolPush()

QT_END_NAMESPACE QT_USE_NAMESPACE void * objc_autoreleasePoolPush ( void )

◆ operator<<() [1/10]

QDebug operator<< ( QDebug dbg,
CFStringRef stringRef )

Definition at line 226 of file qcore_mac.mm.

◆ operator<<() [2/10]

QDebug operator<< ( QDebug dbg,
CGPoint point )

Definition at line 239 of file qcore_mac.mm.

◆ operator<<() [3/10]

QDebug operator<< ( QDebug dbg,
CGRect rect )

Definition at line 251 of file qcore_mac.mm.

◆ operator<<() [4/10]

QDebug operator<< ( QDebug dbg,
CGSize size )

Definition at line 245 of file qcore_mac.mm.

◆ operator<<() [5/10]

QDebug operator<< ( QDebug dbg,
const NSObject * nsObject )

Definition at line 209 of file qcore_mac.mm.

◆ operator<<() [6/10]

QDebug operator<< ( QDebug dbg,
const NSString * nsString )

Definition at line 218 of file qcore_mac.mm.

◆ operator<<() [7/10]

QDebug operator<< ( QDebug dbg,
id obj )

Definition at line 188 of file qcore_mac.mm.

◆ operator<<() [8/10]

QDebug operator<< ( QDebug dbg,
UIEdgeInsets insets )

Definition at line 260 of file qcore_mac.mm.

◆ operator<<() [9/10]

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

Definition at line 362 of file qcore_mac.mm.

◆ operator<<() [10/10]

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

Definition at line 354 of file qcore_mac.mm.

◆ Q_CONSTRUCTOR_FUNCTION()

Q_CONSTRUCTOR_FUNCTION ( qt_apple_check_os_version )

◆ qt_apple_bundleType()

std::optional< UTType * > qt_apple_bundleType ( const QString & path)

Returns the bundle type of the item at path, or std::nullopt if it is not a bundle.

Whether an item is a bundle is determined by its uniform type conforming to com.apple.bundle, covering applications (.app), app extensions (.appex), frameworks, and generic bundles. It is not determined by the mere presence of a Contents directory or similar structure.

Directories whose extension is not a recognized bundle type, such as audio unit components (.component), are still resolved as bundles when they carry bundle metadata (a PkgInfo or Info.plist declaring the package type), as the system then classifies them as a generic bundle. A bare directory without such metadata is not considered a bundle.

Definition at line 531 of file qcore_mac.mm.

◆ qt_apple_check_os_version()

QT_BEGIN_NAMESPACE void qt_apple_check_os_version ( )

Definition at line 631 of file qcore_mac.mm.

◆ qt_apple_isApplicationExtension()

bool qt_apple_isApplicationExtension ( )

Definition at line 508 of file qcore_mac.mm.

Referenced by qt_apple_sharedApplication().

Here is the caller graph for this function:

◆ qt_apple_isSandboxed()

bool qt_apple_isSandboxed ( )

Definition at line 566 of file qcore_mac.mm.

◆ qt_apple_sharedApplication()

AppleApplication * qt_apple_sharedApplication ( )

Definition at line 543 of file qcore_mac.mm.

References qt_apple_isApplicationExtension().

Here is the call graph for this function:

◆ QT_FOR_EACH_CORE_FOUNDATION_TYPE()

QT_FOR_EACH_CORE_FOUNDATION_TYPE ( QT_DECLARE_WEAK_QDEBUG_OPERATOR_FOR_CF_TYPE )

◆ QT_FOR_EACH_CORE_GRAPHICS_TYPE()

QT_FOR_EACH_CORE_GRAPHICS_TYPE ( QT_DECLARE_WEAK_QDEBUG_OPERATOR_FOR_CF_TYPE )

◆ QT_FOR_EACH_MUTABLE_CORE_FOUNDATION_TYPE()

QT_FOR_EACH_MUTABLE_CORE_FOUNDATION_TYPE ( QT_DECLARE_WEAK_QDEBUG_OPERATOR_FOR_CF_TYPE )

◆ QT_FOR_EACH_MUTABLE_CORE_GRAPHICS_TYPE()

QT_FOR_EACH_MUTABLE_CORE_GRAPHICS_TYPE ( QT_DECLARE_WEAK_QDEBUG_OPERATOR_FOR_CF_TYPE )