File indexing completed on 2024-04-28 11:36:08

0001 /* This file is part of the KDE libraries
0002    Copyright (C) 2007 Christian Ehrlicher <ch.ehrlicher@gmx.de>
0003 
0004    This library is free software; you can redistribute it and/or
0005    modify it under the terms of the GNU Library General Public
0006    License version 2 as published by the Free Software Foundation.
0007 
0008    This library is distributed in the hope that it will be useful,
0009    but WITHOUT ANY WARRANTY; without even the implied warranty of
0010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0011    Library General Public License for more details.
0012 
0013    You should have received a copy of the GNU Library General Public License
0014    along with this library; see the file COPYING.LIB.  If not, write to
0015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0016    Boston, MA 02110-1301, USA.
0017 */
0018 
0019 #ifndef KKERNEL_MAC_H
0020 #define KKERNEL_MAC_H
0021 
0022 #include <qglobal.h> // defines Q_OS_MACX
0023 
0024 #ifdef Q_OS_MACX
0025 
0026 #include <kdelibs4support_export.h>
0027 #include <QString>
0028 
0029 #include <CoreFoundation/CFString.h>
0030 
0031 /**
0032  * @short Mac-specific functions needed in kdecore
0033  * @author Benjamin Reed <rangerrick@befunk.com>
0034  *
0035  * This file provides some Mac-specific functions which
0036  * are needed to work around OS issues.
0037   */
0038 
0039 /**
0040  * Convert a CFString to a QString.
0041  * Don't export, is for internal kdelibs use only.
0042  */
0043 QString convert_CFString_to_QString(CFStringRef str);
0044 
0045 /**
0046  * Fork and reexec to work around CoreFoundation issues.
0047   */
0048 KDELIBS4SUPPORT_DEPRECATED_EXPORT void mac_fork_and_reexec_self();
0049 
0050 /**
0051   * Initialize D-Bus Mac-specific stuff if necessary.
0052   */
0053 KDELIBS4SUPPORT_DEPRECATED_EXPORT void mac_initialize_dbus();
0054 
0055 /**
0056   * Get the application name.
0057   */
0058 KDELIBS4SUPPORT_DEPRECATED_EXPORT QString mac_app_filename();
0059 
0060 #endif  // Q_OS_MACX
0061 #endif  // KKERNEL_MAC_H