sdkcreationmw/sdkruntimes/GuiLauncher/src/EcmtGuiDocument.cpp
author Shabe Razvi <shaber@symbian.org>
Thu, 04 Nov 2010 17:22:05 +0000
changeset 4 b3b823debf08
parent 0 b26acd06ea60
permissions -rw-r--r--
Workaround for Bug 3917 - CWinsockInterface::DataSent calls NotifyDataSent which is not implemented.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     1
/*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     2
* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     3
* All rights reserved.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     4
* This component and the accompanying materials are made available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     6
* which accompanies this distribution, and is available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     8
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     9
* Initial Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    11
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    12
* Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    13
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    14
* Description:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    15
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    16
*/
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    17
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    18
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    19
#include "EcmtGuiApplication.h"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    20
#include "EcmtGuiAppUi.h"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    21
#include "EcmtGuiDocument.h"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    22
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    23
CEcmtGuiDocument* CEcmtGuiDocument::NewL(CEikApplication& aApp, TUid aUid)
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    24
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    25
    CEcmtGuiDocument* self = NewLC(aApp, aUid);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    26
    CleanupStack::Pop(self);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    27
    return self;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    28
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    29
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    30
CEcmtGuiDocument* CEcmtGuiDocument::NewLC(CEikApplication& aApp, TUid aUid)
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    31
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    32
    CEcmtGuiDocument* self = new (ELeave) CEcmtGuiDocument(aApp, aUid);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    33
    CleanupStack::PushL(self);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    34
    self->ConstructL();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    35
    return self;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    36
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    37
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    38
void CEcmtGuiDocument::ConstructL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    39
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    40
	// No implementation required
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    41
    }    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    42
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    43
CEcmtGuiDocument::CEcmtGuiDocument(CEikApplication& aApp, TUid aUid) : CAknDocument(aApp), iUid( aUid ) 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    44
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    45
	// No implementation required
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    46
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    47
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    48
CEcmtGuiDocument::~CEcmtGuiDocument()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    49
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    50
	// No implementation required
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    51
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    52
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    53
TUid CEcmtGuiDocument::GetUid()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    54
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    55
        return iUid;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    56
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    57
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    58
CEikAppUi* CEcmtGuiDocument::CreateAppUiL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    59
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    60
    // Create the application user interface, and return a pointer to it;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    61
    // the framework takes ownership of this object
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    62
	return (static_cast <CEikAppUi*> (new (ELeave) CEcmtGuiAppUi)); 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    63
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    64