2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 #ifndef INSTALLER_MODEL_H
17 #define INSTALLER_MODEL_H
19 #include <dpl/mutable_task_list.h>
21 #include <job_types.h>
24 class JobExceptionBase;
26 typedef int JobHandle;
29 public DPL::MutableTaskList
32 Job(InstallationType installType);
34 InstallationType GetInstallationType() const;
37 void SetAbortStarted(bool flag);
38 bool GetAbortStarted() const;
40 // Pause/resume support
41 bool IsPaused() const;
42 void SetPaused(bool paused);
45 void SetJobHandle(JobHandle handle);
46 JobHandle GetJobHandle() const;
47 virtual void SendProgress();
48 virtual void SendFinishedSuccess();
49 virtual void SendFinishedFailure();
50 virtual void SendProgressIconPath(const std::string &path);
52 virtual void SaveExceptionData(const Jobs::JobExceptionBase&);
56 InstallationType m_installationType;
62 #endif // INSTALLER_MODEL_H