--- a/multimediacommscontroller/tsrc/stubs/src/ws_stubs.cpp Tue Apr 27 17:02:55 2010 +0300
+++ b/multimediacommscontroller/tsrc/stubs/src/ws_stubs.cpp Tue May 11 16:34:40 2010 +0300
@@ -16,6 +16,26 @@
*/
#include <w32std.h>
+#include "ws_stubs_helper.h"
+
+static CGraphicsContext::TDrawMode testDrawMode = CGraphicsContext::EDrawModeAND;
+static TInt testNumWindowsCreated = 0;
+
+CGraphicsContext::TDrawMode TWsStubsHelper::CurrentDrawMode()
+{
+ return testDrawMode;
+}
+
+TInt TWsStubsHelper::NumWindowsCreated()
+{
+ return testNumWindowsCreated;
+}
+
+void TWsStubsHelper::Reset()
+{
+ testDrawMode = CGraphicsContext::EDrawModeAND;
+ testNumWindowsCreated = 0;
+}
// -----------------------------------------------------------------------------
// CWindowGc
@@ -48,8 +68,9 @@
}
void CWindowGc::SetDrawMode( TDrawMode aDrawingMode )
{
-
+ testDrawMode = aDrawingMode;
}
+
void CWindowGc::Deactivate()
{
@@ -145,6 +166,7 @@
}
TInt RWindow::Construct(const RWindowTreeNode &parent,TUint32 aHandle)
{
+ testNumWindowsCreated++;
return KErrNone;
}
void RWindow::BeginRedraw(const TRect &aRect)
@@ -262,6 +284,11 @@
return KErrNone;
}
+void RWindowGroup::AutoForeground(TBool /*aState*/)
+ {
+
+ }
+
// -----------------------------------------------------------------------------
// RDrawableWindow
// -----------------------------------------------------------------------------