| class TVPbkContactStoreUriPtr : public MVPbkStreamable |
A class for using contact store URIs (Uniform Resource Identifier).
A URI identifies a contact store. This class is a helper for accessing URI data. It can be used to separate the different parts of the URI and compare URIs.
E.g. A URI of the store could be cntdb://c:contacts.cdb. This URI have three components: 1) cntdb is a scheme - EContactStoreUriStoreType 2) c is a drive of the database - EContactStoreUriStoreDrive 3) c:contacts.cdb is the location - EContactStoreUriStoreLocation
VPbkEng.lib
| Public Member Functions | |
|---|---|
| TVPbkContactStoreUriPtr(const TDesC &) | |
| TVPbkContactStoreUriPtr() | |
| IMPORT_C TInt | Compare(const TVPbkContactStoreUriPtr &, TVPbkContactStoreUriComponent) |
| IMPORT_C TInt | Compare(const TDesC &, TVPbkContactStoreUriComponent) |
| IMPORT_C const TPtrC | Component(TVPbkContactStoreUriComponent) |
| IMPORT_C void | ExternalizeL(RWriteStream &) |
| IMPORT_C TInt | ExternalizedSize() |
| IMPORT_C TInt | Length() |
| IMPORT_C void | Set(const TVPbkContactStoreUriPtr &) |
| IMPORT_C const TDesC & | UriDes() |
| Private Member Functions | |
|---|---|
| TInt | Compare(const TDesC &, const TDesC &) |
| Inherited Functions | |
|---|---|
| MVPbkStreamable::StreamableExtension(TUid) | |
| MVPbkStreamable::~MVPbkStreamable() | |
| Public Member Enumerations | |
|---|---|
| enum | TVPbkContactStoreUriComponent { EContactStoreUriAllComponents, EContactStoreUriStoreType, EContactStoreUriStoreDrive, EContactStoreUriStoreLocation } |
| Private Attributes | |
|---|---|
| TAny * | iSpare |
| TPtrC | iUriBufferPointer |
| IMPORT_C | TVPbkContactStoreUriPtr | ( | const TDesC & | aStoreUri | ) |
Constructs a URI pointer to aStoreUri.
| const TDesC & aStoreUri | A reference to the contact store URI. |
| IMPORT_C TInt | Compare | ( | const TVPbkContactStoreUriPtr & | aUri, |
| TVPbkContactStoreUriComponent | aComponent | |||
| ) | const | |||
Compares this URI's component to aUri's component.
Zero if the URIs are the same.
| const TVPbkContactStoreUriPtr & aUri | The URI whose component is compared. |
| TVPbkContactStoreUriComponent aComponent | Defines the component that are compared. |
| IMPORT_C TInt | Compare | ( | const TDesC & | aUriComponent, |
| TVPbkContactStoreUriComponent | aComponent | |||
| ) | const | |||
Compares this URI's component to aUriComponent.
Zero if components matched.
| const TDesC & aUriComponent | A descriptor that contains the component data. |
| TVPbkContactStoreUriComponent aComponent | Defines the component of this URI that is compared to aUriComponent. |
| TInt | Compare | ( | const TDesC & | aLhsUri, |
| const TDesC & | aRhsUri | |||
| ) | const [private] | |||
| IMPORT_C const TPtrC | Component | ( | TVPbkContactStoreUriComponent | aComponent | ) | const |
Returns a pointer to the aComponent part of URI.
a pointer to the aComponent part of URI.
| TVPbkContactStoreUriComponent aComponent | Defines the component that is returned. |
| IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
Outputs this objects state to aStream.
| RWriteStream & aStream | A stream for writing the object state. |
| IMPORT_C TInt | ExternalizedSize | ( | ) | const [virtual] |
Returns the externalized size of the object in bytes.
The externalized size of the object.
| IMPORT_C void | Set | ( | const TVPbkContactStoreUriPtr & | aUri | ) |
Sets this URI pointer to point to the same URI as aUri.
| const TVPbkContactStoreUriPtr & aUri | The URI that will be pointed to. |
| IMPORT_C const TDesC & | UriDes | ( | ) | const |
Returns a descriptor that holds the whole Uri.
A descriptor that holds the whole Uri.
URI component types.
| EContactStoreUriAllComponents | |
| EContactStoreUriStoreType | |
| EContactStoreUriStoreDrive | |
| EContactStoreUriStoreLocation |