Qt 4.8
Public Types | Public Functions | Properties | Friends | List of all members
QDeclarativeDomImport Class Reference

The QDeclarativeDomImport class represents an import statement. More...

#include <qdeclarativedom_p.h>

Public Types

enum  Type { Library, File }
 

Public Functions

QDeclarativeDomImportoperator= (const QDeclarativeDomImport &)
 Assign other to this QDeclarativeDomImport. More...
 
 QDeclarativeDomImport ()
 Construct an empty QDeclarativeDomImport. More...
 
 QDeclarativeDomImport (const QDeclarativeDomImport &)
 Create a copy of other QDeclarativeDomImport. More...
 
QString qualifier () const
 Returns the (optional) qualifier string (the token following the 'as' keyword) of the import. More...
 
Type type () const
 Returns the type of the import. More...
 
QString uri () const
 Returns the URI of the import (e.g. More...
 
QString version () const
 Returns the version specified by the import. More...
 
 ~QDeclarativeDomImport ()
 Destroy the QDeclarativeDomImport. More...
 

Properties

QSharedDataPointer< QDeclarativeDomImportPrivated
 

Friends

class QDeclarativeDomDocument
 

Detailed Description

The QDeclarativeDomImport class represents an import statement.

Warning
This function is not part of the public interface.

Definition at line 338 of file qdeclarativedom_p.h.

Enumerations

◆ Type

Enumerator
Library 
File 

Definition at line 341 of file qdeclarativedom_p.h.

Constructors and Destructors

◆ QDeclarativeDomImport() [1/2]

QDeclarativeDomImport::QDeclarativeDomImport ( )

Construct an empty QDeclarativeDomImport.

Definition at line 1810 of file qdeclarativedom.cpp.

1812 {
1813 }
QSharedDataPointer< QDeclarativeDomImportPrivate > d

◆ QDeclarativeDomImport() [2/2]

QDeclarativeDomImport::QDeclarativeDomImport ( const QDeclarativeDomImport other)

Create a copy of other QDeclarativeDomImport.

Definition at line 1818 of file qdeclarativedom.cpp.

1819 : d(other.d)
1820 {
1821 }
QSharedDataPointer< QDeclarativeDomImportPrivate > d

◆ ~QDeclarativeDomImport()

QDeclarativeDomImport::~QDeclarativeDomImport ( )

Destroy the QDeclarativeDomImport.

Definition at line 1826 of file qdeclarativedom.cpp.

1827 {
1828 }

Functions

◆ operator=()

QDeclarativeDomImport & QDeclarativeDomImport::operator= ( const QDeclarativeDomImport other)

Assign other to this QDeclarativeDomImport.

Definition at line 1833 of file qdeclarativedom.cpp.

1834 {
1835  d = other.d;
1836  return *this;
1837 }
QSharedDataPointer< QDeclarativeDomImportPrivate > d

◆ qualifier()

QString QDeclarativeDomImport::qualifier ( ) const

Returns the (optional) qualifier string (the token following the 'as' keyword) of the import.

Definition at line 1866 of file qdeclarativedom.cpp.

1867 {
1868  return d->qualifier;
1869 }
QSharedDataPointer< QDeclarativeDomImportPrivate > d

◆ type()

QDeclarativeDomImport::Type QDeclarativeDomImport::type ( ) const

Returns the type of the import.

Definition at line 1842 of file qdeclarativedom.cpp.

1843 {
1844  return static_cast<QDeclarativeDomImport::Type>(d->type);
1845 }
QSharedDataPointer< QDeclarativeDomImportPrivate > d

◆ uri()

QString QDeclarativeDomImport::uri ( ) const

Returns the URI of the import (e.g.

'subdir' or 'com.nokia.Qt')

Definition at line 1850 of file qdeclarativedom.cpp.

1851 {
1852  return d->uri;
1853 }
QSharedDataPointer< QDeclarativeDomImportPrivate > d

◆ version()

QString QDeclarativeDomImport::version ( ) const

Returns the version specified by the import.

An empty string if no version was specified.

Definition at line 1858 of file qdeclarativedom.cpp.

1859 {
1860  return d->version;
1861 }
QSharedDataPointer< QDeclarativeDomImportPrivate > d

Friends and Related Functions

◆ QDeclarativeDomDocument

Definition at line 354 of file qdeclarativedom_p.h.

Properties

◆ d

QSharedDataPointer<QDeclarativeDomImportPrivate> QDeclarativeDomImport::d
private

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