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

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • kernel
Functions
kkernel_win.h File Reference
#include <QtCore/QString>
#include <windows.h>
#include <kdecore_export.h>
Include dependency graph for kkernel_win.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

QByteArray getWin32LocaleName ()
 
QString getWin32RegistryValue (HKEY key, const QString &subKey, const QString &item, bool *ok=0)
 
QString getWin32ShellFoldersPath (const QString &folder)
 
bool isExecutable (const QString &filename)
 
bool showWin32FilePropertyDialog (const QString &fileName)
 

Function Documentation

QByteArray getWin32LocaleName ( )
Returns
two-letter locale name (like "en" or "pl") taken from MS Windows native registry. Useful when we don't want to rely on KSyCoCa. Used e.g. by kbuildsycoca application.

Definition at line 248 of file kkernel_win.cpp.

QString getWin32RegistryValue ( HKEY  key,
const QString &  subKey,
const QString &  item,
bool *  ok 
)
Returns
a value from MS Windows native registry.
a value from MS Windows native registry.
Parameters
keyis usually one of HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE constants defined in WinReg.h.
subKeyis a registry subkey defined as a path to a registry folder, eg. "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders" ('\' delimiter must be used)
itemis an item inside subKey or "" if default folder's value should be returned
okif not null, will be set to true on success and false on failure

Definition at line 180 of file kkernel_win.cpp.

QString getWin32ShellFoldersPath ( const QString &  folder)

Windows-specific functions needed in kdecore.

Author
Christian Ehrlicher ch.eh.nosp@m.rlic.nosp@m.her@g.nosp@m.mx.d.nosp@m.e

This file provides some Windows-specific functions which Qt do not provide access to.

Returns
a value from MS Windows native registry for shell folder folder.
a value from MS Windows native registry for shell folder folder.

Definition at line 267 of file kkernel_win.cpp.

bool isExecutable ( const QString &  filename)
Returns
true when the file is an executable on windows.

Definition at line 536 of file kkernel_win.cpp.

bool showWin32FilePropertyDialog ( const QString &  fileName)

Shows native MS Windows file property dialog for a file fileName.

Return true on success. Only works for local absolute paths. Used by KPropertiesDialog, if possible.

Definition at line 218 of file kkernel_win.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal