messagingfw/deprecate/senduiservices/launcher/src/senduilauncherdoc.cpp
branchRCL_3
changeset 22 d2c4c66342f3
equal deleted inserted replaced
21:e5b3a2155e1a 22:d2c4c66342f3
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Server application for launching SendUi with low 
       
    15 *                capability requirements.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <eikappui.h>
       
    21 
       
    22 #include "senduilauncherappui.h"
       
    23 #include "senduilauncherdoc.h"
       
    24 
       
    25 
       
    26 // ======== LOCAL FUNCTIONS ========
       
    27 // ---------------------------------------------------------------------------
       
    28 // Constructor
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CSendUiLauncherDocument::CSendUiLauncherDocument(CEikApplication& aApp) : CAknDocument(aApp) 
       
    32     {
       
    33     // no implementation required
       
    34     }
       
    35 
       
    36 // ---------------------------------------------------------------------------
       
    37 // NewL
       
    38 // ---------------------------------------------------------------------------
       
    39 //
       
    40 CSendUiLauncherDocument* CSendUiLauncherDocument::NewL(CEikApplication& aApp)
       
    41     {
       
    42     CSendUiLauncherDocument* self = NewLC(aApp);
       
    43     CleanupStack::Pop(self);
       
    44     return self;
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // NewLC
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 CSendUiLauncherDocument* CSendUiLauncherDocument::NewLC(CEikApplication& aApp)
       
    52     {
       
    53     CSendUiLauncherDocument* self = new (ELeave) CSendUiLauncherDocument(aApp);
       
    54     CleanupStack::PushL(self);
       
    55     return self;
       
    56     }
       
    57 
       
    58 
       
    59 // ---------------------------------------------------------------------------
       
    60 // Destructor
       
    61 // ---------------------------------------------------------------------------
       
    62 //
       
    63 CSendUiLauncherDocument::~CSendUiLauncherDocument()
       
    64     {
       
    65     // no implementation required
       
    66     }
       
    67 
       
    68 // ---------------------------------------------------------------------------
       
    69 // CreateAppUiL
       
    70 // ---------------------------------------------------------------------------
       
    71 //
       
    72 CEikAppUi* CSendUiLauncherDocument::CreateAppUiL()
       
    73     {
       
    74     // Create the application user interface, and return a pointer to it,
       
    75     // the framework takes ownership of this object
       
    76     CEikAppUi* appUi = new(ELeave)CSendUiLauncherAppUi;
       
    77     return appUi;
       
    78     }