core/builtins/version.cpp
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 // version.cpp
       
     2 // 
       
     3 // Copyright (c) 2008 - 2010 Accenture. All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the "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 // Accenture - Initial contribution
       
    11 //
       
    12 
       
    13 #include "version.h"
       
    14 
       
    15 // Note, this function is generated by "group\genver.pl".
       
    16 extern void PrintVersionInfo(RIoWriteHandle& aOut, TBool aVerbose);
       
    17 
       
    18 CCommandBase* CCmdVersion::NewLC()
       
    19 	{
       
    20 	CCmdVersion* self = new(ELeave) CCmdVersion();
       
    21 	CleanupStack::PushL(self);
       
    22 	self->BaseConstructL();
       
    23 	return self;
       
    24 	}
       
    25 
       
    26 CCmdVersion::~CCmdVersion()
       
    27 	{
       
    28 	}
       
    29 
       
    30 CCmdVersion::CCmdVersion()
       
    31 	{
       
    32 	}
       
    33 
       
    34 const TDesC& CCmdVersion::Name() const
       
    35 	{
       
    36 	_LIT(KName, "version");	
       
    37 	return KName;
       
    38 	}
       
    39 
       
    40 void CCmdVersion::DoRunL()
       
    41 	{
       
    42 	PrintVersionInfo(Stdout(), iVerbose);
       
    43 	}
       
    44 
       
    45 void CCmdVersion::OptionsL(RCommandOptionList& aOptions)
       
    46 	{
       
    47 	_LIT(KOptVerbose, "verbose");
       
    48 	aOptions.AppendBoolL(iVerbose, KOptVerbose);
       
    49 	}