Location:
apgwgnam.h
Link against: apgrfx.lib
CApaWindowGroupName
Supported from 5.0
Gives access to the name of a window group and the information encoded by that name.
A window group is associated with a task, i.e. a running application. The window group's name encodes four pieces of information for that task:
The name of the document that the task is handling
The task's caption
The application specific UID, as eight hexadecimal characters
Status information for the task, as two hexadecimal characters
|
Defined in CApaWindowGroupName
:
AppUid()
, Caption()
, ConstructFromWgIdL()
, DocName()
, DocNameIsAFile()
, FindByAppUid()
, FindByCaption()
, FindByDocName()
, Hidden()
, IsBusy()
, IsSystem()
, New()
, NewL()
, NewLC()
, RespondsToShutdownEvent()
, RespondsToSwitchFilesEvent()
, SetAppUid()
, SetBusy()
, SetCaptionL()
, SetDocNameIsAFile()
, SetDocNameL()
, SetHidden()
, SetRespondsToShutdownEvent()
, SetRespondsToSwitchFilesEvent()
, SetSystem()
, SetWindowGroupName()
, SetWindowGroupNameL()
, WindowGroupName()
, ~CApaWindowGroupName()
Inherited from CBase
:
operator new()
static CApaWindowGroupName* NewL(const RWsSession& aWsSession);
Creates a window group name object and assigns a default name to it.
|
|
static CApaWindowGroupName* NewLC(const RWsSession& aWsSession);
Creates a window group name object, assigns a default name to it, and puts a pointer to the new object onto the cleanup stack.
|
|
static CApaWindowGroupName* NewL(const RWsSession& aWsSession, TInt aWgId);
Creates a window group name object and assigns to it the name taken from the specified window group.
|
|
static CApaWindowGroupName* NewLC(const RWsSession& aWsSession, TInt aWgId);
Creates a window group name object, assigns to it the name taken from the specified window group, and puts a pointer to the new object onto the cleanup stack.
|
|
static CApaWindowGroupName* NewL(const RWsSession& aWsSession, const TDesC& aWgName);
Creates a window group name object and assigns to it the specified name.
The name must have valid format. Typically, this is an existing window group name.
|
|
static CApaWindowGroupName* NewLC(const RWsSession& aWsSession, const TDesC& aWgName);
Creates a window group name object, assigns to it the specified name, and puts a pointer to the new object onto the cleanup stack.
The name must have valid format. Typically, this is an existing window group name.
|
|
static CApaWindowGroupName* New(const RWsSession& aWsSession, HBufC* aWgName);
Creates a window group name object and takes ownership of the heap descriptor containing a name.
The name must have valid format. Typically, this is an existing window group name.
Note that the function cannot leave.
|
|
void ConstructFromWgIdL(TInt aWgId);
Assigns to this object the name taken from the specified window group.
Any previously existing name contained by this window group name object is lost.
If the specified window group does not exist or it has no name, then a default name is assigned.
|
~CApaWindowGroupName();
Destructor.
Frees resources owned by the object prior to its destruction.
TUid AppUid() const;
Gets the UID of the task's application.
|
TPtrC Caption() const;
Gets the task's caption.
|
TPtrC DocName() const;
Gets the name of the document that the task is handling.
|
TBool IsBusy() const;
Tests whether the task is marked as busy.
|
TBool IsSystem() const;
Tests whether the task is marked as a system task.
|
TBool DocNameIsAFile() const;
Tests whether the document name is a file.
|
TPtrC WindowGroupName() const;
Gets the full window group name.
|
TBool RespondsToShutdownEvent() const;
Tests whether the task can deal with a request to shutdown.
|
TBool RespondsToSwitchFilesEvent() const;
Tests whether the task can deal with a request to switch files.
|
TBool Hidden();
Supported from 6.0
Tests whether the task is marked as hidden.
|
static void FindByDocName(const TDesC& aDocName, RWsSession& aWsSession, TInt& aPrevWgId);
Searches for the next window group by document name.
A running application, also known as a task, is associated with a window group. The function searches for the next task handling the specified document, and returns its associated window group ID.
|
static void FindByCaption(const TDesC& aCaption, RWsSession& aWsSession, TInt& aPrevWgId);
Searches for the next window group by caption.
A running application, also known as a task, is associated with a window group. The function searches for the next task having the specified caption, and returns its associated window group ID.
|
static void FindByAppUid(TUid aAppUid, RWsSession& aWsSession, TInt& aPrevWgId);
Searches for the next window group by application UID.
A running application, also known as a task, is associated with a window group. The function searches for the next task running the specified application, and returns its associated window group ID.
|
void SetAppUid(TUid aAppUid);
Sets the specified UID into the window group name in this object.
|
void SetCaptionL(const TDesC& aCaption);
Sets the specified caption into the window group name in this object.
|
void SetDocNameL(const TDesC& aDocName);
Sets the specified document name into the window group name in this object.
|
void SetBusy(TBool aBusy);
Sets the task's busy status in this object.
|
void SetSystem(TBool aSystem);
Sets the task's system status in this object.
|
void SetDocNameIsAFile(TBool aDocNameIsAFile);
Sets the document name status in this object.
|
void SetWindowGroupNameL(const TDesC& aWgName);
Sets the full window group name in this object.
|
void SetWindowGroupName(HBufC* aWgName);
Sets the full window group name in this object, taking ownership of the specified heap descriptor.
The function cannot leave.
|
TInt SetWindowGroupName(RWindowGroup& aGroupWin) const;
Sets the window group name contained by this object into the specified window group.
|
|
void SetRespondsToShutdownEvent(TBool aRespondsToShutdownEvent);
Sets the task's shutdown handling status in this object.
|
void SetRespondsToSwitchFilesEvent(TBool aRespondsToSwitchFilesEvent);
Sets the task's switch file handling status in this object.
|
void SetHidden(TBool aIsHidden);
Supported from 6.0
Marks the task as hidden.
|
TApaTask::FindByPos()
will
ignore any tasks marked as hidden.