Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QWindowsShellItem Class Reference

Wrapper for IShellItem. More...

+ Collaboration diagram for QWindowsShellItem:

Public Types

using IShellItems = std::vector<IShellItem *>
 

Public Member Functions

 QWindowsShellItem (IShellItem *item)
 
SFGAOF attributes () const
 
QString normalDisplay () const
 
QString urlString () const
 
QString fileSysPath () const
 
QString desktopAbsoluteParsing () const
 
QString path () const
 
QUrl url () const
 
bool isFileSystem () const
 
bool isDir () const
 
bool canStream () const
 
bool copyData (QIODevice *out, QString *errorMessage)
 
void format (QDebug &d) const
 

Static Public Member Functions

static IShellItems itemsFromItemArray (IShellItemArray *items)
 

Detailed Description

Wrapper for IShellItem.

See also
QWindowsNativeFileDialogBase

Definition at line 474 of file qwindowsdialoghelpers.cpp.

Member Typedef Documentation

◆ IShellItems

using QWindowsShellItem::IShellItems = std::vector<IShellItem *>

Definition at line 477 of file qwindowsdialoghelpers.cpp.

Constructor & Destructor Documentation

◆ QWindowsShellItem()

QWindowsShellItem::QWindowsShellItem ( IShellItem * item)
explicit

Definition at line 515 of file qwindowsdialoghelpers.cpp.

References item.

Member Function Documentation

◆ attributes()

SFGAOF QWindowsShellItem::attributes ( ) const
inline

Definition at line 481 of file qwindowsdialoghelpers.cpp.

Referenced by format().

+ Here is the caller graph for this function:

◆ canStream()

bool QWindowsShellItem::canStream ( ) const
inline

Definition at line 496 of file qwindowsdialoghelpers.cpp.

Referenced by copyData(), and format().

+ Here is the caller graph for this function:

◆ copyData()

bool QWindowsShellItem::copyData ( QIODevice * out,
QString * errorMessage )

Definition at line 600 of file qwindowsdialoghelpers.cpp.

References canStream(), errorMessage(), forever, and out.

+ Here is the call graph for this function:

◆ desktopAbsoluteParsing()

QString QWindowsShellItem::desktopAbsoluteParsing ( ) const
inline

Definition at line 488 of file qwindowsdialoghelpers.cpp.

References displayName().

Referenced by format(), and url().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fileSysPath()

QString QWindowsShellItem::fileSysPath ( ) const
inline

Definition at line 486 of file qwindowsdialoghelpers.cpp.

References displayName().

Referenced by format().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format()

void QWindowsShellItem::format ( QDebug & d) const

Definition at line 670 of file qwindowsdialoghelpers.cpp.

References attributes(), canStream(), d, Qt::dec(), desktopAbsoluteParsing(), fileSysPath(), Qt::hex(), isDir(), isFileSystem(), normalDisplay(), path(), and urlString().

Referenced by operator<<().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isDir()

bool QWindowsShellItem::isDir ( ) const
inline

Definition at line 494 of file qwindowsdialoghelpers.cpp.

Referenced by format(), and path().

+ Here is the caller graph for this function:

◆ isFileSystem()

bool QWindowsShellItem::isFileSystem ( ) const
inline

Definition at line 493 of file qwindowsdialoghelpers.cpp.

Referenced by format(), and path().

+ Here is the caller graph for this function:

◆ itemsFromItemArray()

QWindowsShellItem::IShellItems QWindowsShellItem::itemsFromItemArray ( IShellItemArray * items)
static

Definition at line 585 of file qwindowsdialoghelpers.cpp.

References i, item, and items.

Referenced by QWindowsNativeOpenFileDialog::dialogResult(), and QWindowsNativeOpenFileDialog::selectedFiles().

+ Here is the caller graph for this function:

◆ normalDisplay()

QString QWindowsShellItem::normalDisplay ( ) const
inline

Definition at line 482 of file qwindowsdialoghelpers.cpp.

References displayName().

Referenced by format().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ path()

QString QWindowsShellItem::path ( ) const

Definition at line 533 of file qwindowsdialoghelpers.cpp.

References QDir::cleanPath(), isDir(), and isFileSystem().

Referenced by QWindowsNativeFileDialogBase::directory(), format(), and url().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ url()

QUrl QWindowsShellItem::url ( ) const

Definition at line 559 of file qwindowsdialoghelpers.cpp.

References desktopAbsoluteParsing(), QUrl::fromLocalFile(), and path().

Referenced by QWindowsNativeFileDialogBase::onFolderChange().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ urlString()

QString QWindowsShellItem::urlString ( ) const
inline

Definition at line 484 of file qwindowsdialoghelpers.cpp.

References displayName().

Referenced by format().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: