multimediacommscontroller/tsrc/stubs/src/ws_stubs.cpp
branchRCL_3
changeset 17 a5ac35ca6d81
parent 7 5e57de868bc0
equal deleted inserted replaced
14:5bf83dc720b3 17:a5ac35ca6d81
    14 * Description:    
    14 * Description:    
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #include <w32std.h>
    18 #include <w32std.h>
       
    19 #include "ws_stubs_helper.h"
       
    20 
       
    21 static CGraphicsContext::TDrawMode testDrawMode = CGraphicsContext::EDrawModeAND;
       
    22 static TInt testNumWindowsCreated = 0;
       
    23 
       
    24 CGraphicsContext::TDrawMode TWsStubsHelper::CurrentDrawMode()
       
    25 {
       
    26     return testDrawMode;
       
    27 }
       
    28 
       
    29 TInt TWsStubsHelper::NumWindowsCreated()
       
    30 {
       
    31     return testNumWindowsCreated;
       
    32 }
       
    33 
       
    34 void TWsStubsHelper::Reset()
       
    35 {
       
    36     testDrawMode = CGraphicsContext::EDrawModeAND;
       
    37     testNumWindowsCreated = 0;
       
    38 }
    19 
    39 
    20 // -----------------------------------------------------------------------------
    40 // -----------------------------------------------------------------------------
    21 // CWindowGc
    41 // CWindowGc
    22 // -----------------------------------------------------------------------------
    42 // -----------------------------------------------------------------------------
    23 //
    43 //
    46     {
    66     {
    47     
    67     
    48     }
    68     }
    49 void CWindowGc::SetDrawMode( TDrawMode aDrawingMode )
    69 void CWindowGc::SetDrawMode( TDrawMode aDrawingMode )
    50     {
    70     {
    51     
    71     testDrawMode = aDrawingMode;
    52     }
    72     }
       
    73 
    53 void CWindowGc::Deactivate()
    74 void CWindowGc::Deactivate()
    54     {
    75     {
    55     
    76     
    56     }
    77     }
    57 void CWindowGc::CancelClippingRect()
    78 void CWindowGc::CancelClippingRect()
   143     {
   164     {
   144     
   165     
   145     }
   166     }
   146 TInt RWindow::Construct(const RWindowTreeNode &parent,TUint32 aHandle)
   167 TInt RWindow::Construct(const RWindowTreeNode &parent,TUint32 aHandle)
   147     {
   168     {
       
   169     testNumWindowsCreated++;
   148     return KErrNone;
   170     return KErrNone;
   149     }
   171     }
   150 void RWindow::BeginRedraw(const TRect &aRect)
   172 void RWindow::BeginRedraw(const TRect &aRect)
   151     {
   173     {
   152     
   174     
   258     return KErrNone;
   280     return KErrNone;
   259     }
   281     }
   260 TInt RWindowGroup::SetName(const TDesC &aName)
   282 TInt RWindowGroup::SetName(const TDesC &aName)
   261     {
   283     {
   262     return KErrNone;
   284     return KErrNone;
       
   285     }
       
   286 
       
   287 void RWindowGroup::AutoForeground(TBool /*aState*/)
       
   288     {
       
   289         
   263     }
   290     }
   264 
   291 
   265 // -----------------------------------------------------------------------------
   292 // -----------------------------------------------------------------------------
   266 // RDrawableWindow
   293 // RDrawableWindow
   267 // -----------------------------------------------------------------------------
   294 // -----------------------------------------------------------------------------