From: Adam Banasiak Date: Tue, 10 Sep 2013 15:40:05 +0000 (+0200) Subject: Add typedef for the long class types X-Git-Tag: 2.2.1_release~10^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9bc3f3edcbe39574d3bfb8698bd1a2326aa6f7e2;p=framework%2Fweb%2Fwrt-installer.git Add typedef for the long class types [Issue#] LINUXWRT-358 [Problem] Long type names are hard to read [Cause] N/A [Solution] Created typedefs for the followings: - InstallerBase - WidgetInstallationBase - WidgetUnistallStructBase - UninstallContextBase Change-Id: I8aff13bca4fbf83ccf72962c149845e0277f90ae --- diff --git a/src/jobs/widget_install/job_widget_install.h b/src/jobs/widget_install/job_widget_install.h index acadd2c..b87c12b 100644 --- a/src/jobs/widget_install/job_widget_install.h +++ b/src/jobs/widget_install/job_widget_install.h @@ -34,11 +34,14 @@ using namespace Jobs::Exceptions; namespace Jobs { namespace WidgetInstall { +typedef JobProgressBase InstallerBase; +typedef JobContextBase WidgetInstallationBase; + class JobWidgetInstall : public Job, - public JobProgressBase, - public JobContextBase //TODO typedef + public InstallerBase, + public WidgetInstallationBase + { private: InstallerContext m_installerContext; diff --git a/src/jobs/widget_uninstall/job_widget_uninstall.h b/src/jobs/widget_uninstall/job_widget_uninstall.h index c787fb5..0a33a4a 100644 --- a/src/jobs/widget_uninstall/job_widget_uninstall.h +++ b/src/jobs/widget_uninstall/job_widget_uninstall.h @@ -36,11 +36,13 @@ enum class WidgetStatus Ok, NOT_INSTALLED, PREALOAD, ABNORMAL, UNRECOGNIZED }; +typedef JobContextBase WidgetUnistallStructBase; +typedef JobProgressBase UninstallContextBase; + class JobWidgetUninstall : public Job, - public JobProgressBase, - public JobContextBase //TODO typedef + public UninstallContextBase, + public WidgetUnistallStructBase { private: UninstallerContext m_context;