localisation/apparchitecture/tef/tnotifydrivesapp/tnotifydrivesapp.cpp
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
       
    16 
       
    17 
    15 
    18 /**
    16 /**
    19  @file
    17  @file
    20  @test
    18  @test
    21  @internalComponent - Internal Symbian test code
    19  @internalComponent - Internal Symbian test code
    25 #include "tnotifydrivesapp.h"
    23 #include "tnotifydrivesapp.h"
    26 
    24 
    27 const TUid KNotifyDrivesAppUid = { 0xA0003376 };
    25 const TUid KNotifyDrivesAppUid = { 0xA0003376 };
    28 
    26 
    29 
    27 
    30 ////////////////////////////////////////////////////////////////////////
    28 //
    31 //
    29 //
    32 // Implementation of the application class - CExampleApplication
    30 // Implementation of the application class - CExampleApplication
    33 //
    31 //
    34 ////////////////////////////////////////////////////////////////////////
    32 //
    35 
    33 
    36 TUid CExampleApplication::AppDllUid() const
    34 TUid CExampleApplication::AppDllUid() const
    37 	{
    35 	{
    38 	return KNotifyDrivesAppUid;
    36 	return KNotifyDrivesAppUid;
    39 	}
    37 	}
    42 	{
    40 	{
    43 	return new (ELeave) CExampleDocument(*this);
    41 	return new (ELeave) CExampleDocument(*this);
    44 	}
    42 	}
    45 	
    43 	
    46 
    44 
    47 ////////////////////////////////////////////////////////////////////////
    45 //
    48 //
    46 //
    49 // Implementation of the appui class - CExampleAppUi
    47 // Implementation of the appui class - CExampleAppUi
    50 //
    48 //
    51 ////////////////////////////////////////////////////////////////////////
    49 //
    52 
    50 
    53 void CExampleAppUi::ConstructL()
    51 void CExampleAppUi::ConstructL()
    54     {
    52     {
    55     BaseConstructL();
    53     BaseConstructL();
    56 	iAppView = CExampleAppView::NewL(ClientRect());
    54 	iAppView = CExampleAppView::NewL(ClientRect());
    71 		}
    69 		}
    72 	}
    70 	}
    73 
    71 
    74 
    72 
    75 
    73 
    76 ////////////////////////////////////////////////////////////////////////
    74 //
    77 //
    75 //
    78 // Implementation of the view class - CExampleAppView
    76 // Implementation of the view class - CExampleAppView
    79 //
    77 //
    80 ////////////////////////////////////////////////////////////////////////
    78 //
    81 
    79 
    82 CExampleAppView::CExampleAppView()
    80 CExampleAppView::CExampleAppView()
    83 	{
    81 	{
    84 	}
    82 	}
    85 
    83 
   141 	gc.DiscardFont();
   139 	gc.DiscardFont();
   142 	}
   140 	}
   143 
   141 
   144 
   142 
   145 
   143 
   146 ////////////////////////////////////////////////////////////////////////
   144 //
   147 //
   145 //
   148 // Implementation of the document class - CExampleDocument
   146 // Implementation of the document class - CExampleDocument
   149 //
   147 //
   150 ////////////////////////////////////////////////////////////////////////
   148 //
   151 
   149 
   152 CExampleDocument::CExampleDocument(CEikApplication& aApp)
   150 CExampleDocument::CExampleDocument(CEikApplication& aApp)
   153 		: CEikDocument(aApp)
   151 		: CEikDocument(aApp)
   154 	{
   152 	{
   155 	}
   153 	}