webappmanager
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProcessBase.h
Go to the documentation of this file.
1 /* @@@LICENSE
2 *
3 * Copyright (c) 2008-2012 Hewlett-Packard Development Company, L.P.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 * LICENSE@@@ */
30 #ifndef __ProcessBase_h__
31 #define __ProcessBase_h__
32 
33 #include "Common.h"
34 
35 #include <QString>
36 
37 
46 {
47  public:
58 
67  virtual ~ProcessBase() { }
68 
77  virtual void setProcessId( const QString& inId ) { m_procId=inId; }
78 
89  const QString& processId() const { return m_procId; }
90 
99  virtual void setAppId( const QString& inId ) { m_appId=inId; }
100 
111  const QString& appId() const { return m_appId; }
112 
121  void setLaunchingAppId(const QString& id) { m_launchingAppId=id; }
122 
133  const QString& launchingAppId() const { return m_launchingAppId; }
134 
143  void setLaunchingProcessId(const QString& id) { m_launchingProcId = id; }
144 
155  const QString& launchingProcessId() const { return m_launchingProcId; }
156 
157  private:
161  QString m_procId;
162 
166  QString m_appId;
167 
171  QString m_launchingAppId;
172 
176  QString m_launchingProcId;
177 };
178 
179 
180 #endif
181