--- a/taskswitcher/utils/src/tsentrykeygenerator.cpp Mon Sep 13 13:26:33 2010 +0300
+++ b/taskswitcher/utils/src/tsentrykeygenerator.cpp Mon Sep 20 10:22:22 2010 +0300
@@ -20,6 +20,32 @@
//
// -----------------------------------------------------------------------------
//
+TInt TsEntryKeyGeneraror::Generate( TTsEntryKey& aReturnKey,
+ TInt aWindowGroupId,
+ const MTsRunningApplicationStorage& aStorage)
+{
+ for (TInt iter(0); iter < aStorage.Count(); ++iter) {
+ if (aStorage[iter].WindowGroupId() == aWindowGroupId) {
+ aReturnKey = TTsEntryKey( aWindowGroupId );
+ if (aStorage[iter].WindowGroupId() == aStorage[iter].ParentWindowGroupId())
+ {
+ return KErrBadHandle;
+ }
+ else if ( aStorage[iter].IsEmbeded() )
+ {
+ return TsEntryKeyGeneraror::Generate(aReturnKey, aStorage[iter].ParentWindowGroupId(), aStorage);
+
+ }
+ else
+ {
+ return KErrNone;
+ }
+ }
+ }
+ return KErrNotFound;
+}
+
+// -----------------------------------------------------------------------------
TInt TsEntryKeyGeneraror::Generate(TTsEntryKey& returnKey, TInt windowGroupId,
const TArray<RWsSession::TWindowGroupChainInfo>& groupChain)
{
@@ -39,4 +65,3 @@
}
return KErrNotFound;
}
-