--- a/contentstorage/cahandler/app/src/caapphandler.cpp Fri Sep 17 08:32:18 2010 +0300
+++ b/contentstorage/cahandler/app/src/caapphandler.cpp Mon Oct 04 00:38:31 2010 +0300
@@ -22,7 +22,6 @@
#include <apgcli.h>
#include <eikenv.h>
#include <eikappui.h>
-#include <vwsdef.h>
#include <AknDef.h>
#include <AknTaskList.h>
@@ -47,8 +46,6 @@
static const char caTypePackage[] = "package";
static const char caTypeWidget[] = "widget";
static const char caAttrView[] = "view";
-static const char caCmdClose[] = "close";
-static const char caAttrWindowGroupId[] = "window_group_id";
static const char caAttrComponentId[] = "component_id";
/*!
@@ -104,11 +101,6 @@
int uid = uidValue.toInt();
TRAP(result, launchApplicationL(TUid::Uid(uid), viewId));
}
- } else if (command == caCmdClose && entry.entryTypeName() == caTypeApp ) {
- QString windowGroupId = entry.attribute(caAttrWindowGroupId);
- if (!windowGroupId.isNull()) {
- result = closeApplication(entry.flags(), windowGroupId.toInt());
- }
} else if (command == caCmdRemove) {
QString componentId(entry.attribute(caAttrComponentId));
result = handleRemove(entry.flags(),
@@ -178,28 +170,6 @@
}
}
-/*!
- * Closes application.
- * \param flags an entry flags.
- * \param windowGroupId window group id.
- * \retval an error code.
- */
-int CaAppHandler::closeApplication(const EntryFlags &flags, int windowGroupId)
-{
- int result(KErrNone);
- if (windowGroupId > 0) {
- RWsSession wsSession;
- result = wsSession.Connect();
- if (result==KErrNone) {
- TWsEvent event;
- event.SetTimeNow();
- event.SetType(KAknShutOrHideApp);
- wsSession.SendEventToWindowGroup(windowGroupId, event);
- }
- wsSession.Close();
- }
- return result;
-}
/*!
* Uninstall application.