• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

kkernel_mac.cpp File Reference

#include "kkernel_mac.h"
#include <config.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/param.h>
#include <crt_externs.h>
#include <mach-o/dyld.h>
#include <CoreFoundation/CFBundle.h>
#include <CoreFoundation/CFString.h>
#include <CoreFoundation/CFURL.h>
#include <QtCore/QFile>
#include <QtCore/QProcess>
#include <QtCore/QStringList>
#include <QtCore/qvarlengtharray.h>
#include <kstandarddirs.h>
#include <ksharedconfig.h>
#include <kconfig.h>
#include <kdebug.h>

Go to the source code of this file.

Functions

static QString convert_CFString_to_QString (CFStringRef str)
QString mac_app_filename ()
void mac_fork_and_reexec_self ()
void mac_initialize_dbus ()
bool mac_set_dbus_address (QString value)

Variables

bool dbus_initialized = false
int timeout = 3000

Function Documentation

static QString convert_CFString_to_QString ( CFStringRef  str  )  [static]

qAppFileName() is not public in qt4/mac, so we need to redo it here

Definition at line 54 of file kkernel_mac.cpp.

QString mac_app_filename (  ) 

Get the application name.

Definition at line 188 of file kkernel_mac.cpp.

void mac_fork_and_reexec_self (  ) 

Calling CoreFoundation APIs (which is unavoidable in Qt/Mac) has always had issues on Mac OS X, but as of 10.5 is explicitly disallowed with an exception.

Mac-specific functions needed in kdecore.

As a result, in the case where we would normally fork and then dlopen code, or continue to run other code, we must now fork-and-exec.

See "CoreFoundation and fork()" at http://developer.apple.com/releasenotes/CoreFoundation/CoreFoundation.html

Definition at line 75 of file kkernel_mac.cpp.

void mac_initialize_dbus (  ) 

Make sure D-Bus is initialized, by any means necessary.

Initialize D-Bus Mac-specific stuff if necessary.

Definition at line 134 of file kkernel_mac.cpp.

bool mac_set_dbus_address ( QString  value  ) 

Set the D-Bus environment based on session bus socket.

Definition at line 119 of file kkernel_mac.cpp.


Variable Documentation

bool dbus_initialized = false

Definition at line 48 of file kkernel_mac.cpp.

int timeout = 3000

Definition at line 46 of file kkernel_mac.cpp.

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal