blob: e3511f6675d7953c9294c0ff23a61d06d7b90776 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 Nokia and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Nokia - Initial API and implementation
*******************************************************************************/
#include "RunControlContext.h"
#include "AgentUtils.h"
#include "ProtocolConstants.h"
/*
* Create a new context. Note the "internalID" should remain the same for the same context
* (e.g. a process) in OS even when we create "context" object at different times.
*/
RunControlContext::RunControlContext(ContextOSID osid, const ContextID& parentID, const ContextID& internalID) :
Context(parentID, internalID),
isDebugging(false)
{
osID = osid;
Initialize();
}
void RunControlContext::Initialize() {
SetProperty(PROP_OS_ID, PropertyValue(GetOSID()));
}
ContextOSID RunControlContext::GetOSID() const {
return osID;
}