secureswitools/swisistools/source/interpretsislib/dbhelper.cpp
changeset 75 2d2d25361590
parent 50 c6e8afe0ba85
--- a/secureswitools/swisistools/source/interpretsislib/dbhelper.cpp	Fri Sep 03 17:01:40 2010 +0300
+++ b/secureswitools/swisistools/source/interpretsislib/dbhelper.cpp	Tue Sep 28 14:48:39 2010 +0300
@@ -249,6 +249,22 @@
 	return (stmtInRom->IntColumn(0) == 1);
 	}
 
+std::wstring DbHelper::GetStubFileName( TInt32 aComponentId ) const
+	{
+	std::string selectStubFileName("SELECT StrValue FROM ComponentProperties WHERE ComponentId=? and Name=?;");
+	std::auto_ptr<CStatement> stmtStubFileName(iScrDbHandler->PrepareStatement(selectStubFileName));
+		
+	stmtStubFileName->BindInt(1, aComponentId);
+	stmtStubFileName->BindStr(2, DbConstants::CompStubFileName);
+	
+	if(stmtStubFileName->ProcessNextRow())
+		{
+		return stmtStubFileName->StrColumn(0);
+		}
+
+	return L"\0";
+	}
+
 std::wstring DbHelper::GetPackageName( TInt32 aComponentId ) const
 	{
 	std::string selectPckgName("SELECT Name FROM ComponentLocalizables WHERE ComponentId=?;");