--- a/applicationmanagement/server/inc/ApplicationManagementServer.h Thu Aug 19 09:42:30 2010 +0300
+++ b/applicationmanagement/server/inc/ApplicationManagementServer.h Tue Aug 31 15:05:55 2010 +0300
@@ -28,20 +28,28 @@
#include <swi/sisregistrysession.h>
#include <swi/sisregistrypackage.h>
#include <swi/sisregistryentry.h>
-#include <downloadmgrclient.h>
-
+#include <hbprogressdialog.h>
+#include <hbmainwindow.h>
+#include <hbaction.h>
+#include <usif/sif/sif.h>
+#include <SWInstApi.h>
+#include <QGraphicsLinearLayout>
#include "ApplicationManagementClientServer.h"
#include "PlatformSecurityPolicies.h"
#include "AMDeploymentComponent.h"
#include "amstorage.h"
#include "ApplicationManagementUtility.h"
#include "AMDownloaddb.h"
+#include "amwaitprogdialog.h"
+#include "AMDownloadStore.h"
-#include "AMDownloadManager.h"
// CONSTANTS
+const TUid NProperty = {0x200267FB};
+const TUint32 NInteger = 0x00000001;
const TInt KBase64BufSize = 131072;
+const QString path = "z:/resource/qt/translations/";
class CAppMgmtSrvApp;
-
+_LIT(KIndicatorParamDownloading, "Downloading");
namespace NApplicationManagement
{
@@ -55,7 +63,14 @@
EPanicIllegalFunction,
EBadDescriptor
};
-
+ // -----------------------------------------------------------
+ // Wait dialog types
+ // -----------------------------------------------------------
+ enum TDialogType
+ {
+ EInstallWaitDlg,
+ EUninstallWaitDlg
+ };
// FUNCTION PROTOTYPES
void PanicClient(const RMessagePtr2& aMessage,
@@ -82,26 +97,26 @@
* Description.
*/
- class CApplicationManagementServer : public CAknAppServer,
- public MDownloadMngrObserver
+ class CApplicationManagementServer : public CPolicyServer,
+ public MDownloadMngrObserver,public MInstallerCallBack
{
public:
- static CApplicationManagementServer* NewL();
+ static CServer2* NewL(HbMainWindow *mainWindow);
~CApplicationManagementServer();
void Panic(TInt aPanicCode);
void AddSession();
void DropSession();
-
+
CPolicyServer::TCustomResult CreateServiceSecurityCheckL(
TUid aServiceType, const RMessage2& aMsg, TInt& aAction,
TSecurityInfo& aMissing);
private:
CApplicationManagementServer();
- virtual void ConstructL(const TDesC &aServerName);
- /*CSession2* NewSessionL(const TVersion& aVersion,
- const RMessage2& aMessage) const;*/
+ virtual void ConstructL(HbMainWindow *mainWindow);
+ CSession2* NewSessionL(const TVersion& aVersion,
+ const RMessage2& aMessage) const;
//From CPolicyServer
CPolicyServer::TCustomResult
@@ -241,13 +256,9 @@
void StartShutDownTimerL();
- void SendServerToBackground();
-
- void BringServertoForeground();
-
- void BringDMUItoForeground();
TBool IsInstalledAppRemovableL(TDriveNumber &iDrive);
+ void InstallationCancelled();
private:
/**
@@ -337,33 +348,34 @@
TFileName &aMetaFileName) const;
CApaAppServiceBase* CreateServiceL(TUid aServiceType) const;
-
public:
-
CAppMgmtSrvApp* iParentApp;
-
private:
-
TInt iSessionCount;
CShutdown iShutdown;
CApplicationManagementUtility* iUtility;
CDeliveryComponentStorage *iStorage;
TBool iInstallInProgress;
- //SwiUI::RSWInstSilentLauncher iInstaller;
- SwiUI::RSWInstLauncher iInstaller;
+ Usif::RSoftwareInstall iInstaller;
+ Usif::COpaqueNamedParams *iArgu;
+ Usif::COpaqueNamedParams *iResults;
SwiUI::TInstallOptionsPckg iInstallOptions;
SwiUI::TUninstallOptionsPckg iUninstallOptions;
SwiUI::TInstallReqPckg iInstallReq;
-
+ TFileName iAppname;
RFs iInstallRFs;
RFile iInstallFile;
-
- CAMDownloadManager* iDownloadMngr;
-
+ CAMDownloadStore* iDownloadMngr;
CAMDownloaddb* iAMServerDB;
TBool iOMASCOMOEnabled;
-
+
+ appmgmtdownloadmgr* m_DownloadMngr;
+ QString m_appName;
+ AMWaitProgDialog* m_Dlg;
+ CDeploymentComponent* iComp;
+ HbMainWindow* m_Window;
+ int mUserCancelled;
};
namespace NPolicyConstants
@@ -378,7 +390,7 @@
_LIT8( KResourceValue, "ApplicationManagement" );
}
- class CApplicationManagementSession : public CAknAppServiceBase
+ class CApplicationManagementSession : public CSession2
{
public:
inline CApplicationManagementSession();
@@ -434,14 +446,13 @@
void GenericAlertSentForIdL(const RMessage2& aMessage) const;
void CheckStatusNodesValuesL();
-
- void SetSCOMOTargetURI(const TDesC8& aURI) const;
private:
void LookupSisRegistryL();
TCertInfo iCertInfo;
TBool iTrustAdded;
+
};
}