imagehandlingutilities/thumbnailmanager/thumbnailserver/src/tnmgetimei.cc
changeset 14 2edacbf5d3f9
parent 1 235a7fc86938
child 15 7197e789b953
--- a/imagehandlingutilities/thumbnailmanager/thumbnailserver/src/tnmgetimei.cc	Tue Feb 02 00:23:15 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:  Helper class to get IMEI number.
-*
-*/
-
-
-#include "tnmgetimei.h"
-#include "thumbnailmanagerconstants.h"
-
-CTnmgetimei* CTnmgetimei::NewL()
-    {
-    CTnmgetimei *self = CTnmgetimei::NewLC();
-    CleanupStack::Pop();
-    return self;
-    }
-
-CTnmgetimei* CTnmgetimei::NewLC()
-    {
-    CTnmgetimei *self = new (ELeave) CTnmgetimei();
-    CleanupStack::PushL(self);
-    self->ConstructL();
-    return self;
-    }
-
-void CTnmgetimei::ConstructL()
-   {
-   iTelephony = CTelephony::NewL();
-   CActiveScheduler::Add(this);
-   }
-
-CTnmgetimei::~CTnmgetimei()
-    {
-    Cancel();
-
-    delete iTelephony;
-    }
-
-TBuf<KImeiBufferSize> CTnmgetimei::GetIMEI()
-    {   
-    
-    CTelephony::TPhoneIdV1Pckg phoneIdPckg( iV1 );  
-    
-    iTelephony->GetPhoneId( iStatus, phoneIdPckg );
-    SetActive();
-    iAsw.Start();
-    Deque();
-    return iImei;
-        
-    }
-
-void CTnmgetimei::DoCancel()
-    {
-    iTelephony->CancelAsync(CTelephony::EGetPhoneIdCancel);
-    }
-   
-void CTnmgetimei::RunL()
-    {
-    if(iStatus == KErrNone)
-        {
-        iImei = iV1.iSerialNumber;
-        }
-    iAsw.AsyncStop();
-    }