tools/createsrc-templates/FshellCmd/SkeletonTemplate.cpp
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 // SkeletonTemplate.cpp
       
     2 //
       
     3 // [[COPYRIGHT]]
       
     4 //
       
     5 
       
     6 #include <fshell/ioutils.h>
       
     7 #include <fshell/common.mmh>
       
     8 
       
     9 using namespace IoUtils;
       
    10 
       
    11 class CCmdSkeletonTemplate : public CCommandBase
       
    12 	{
       
    13 public:
       
    14 	static CCommandBase* NewLC();
       
    15 	~CCmdSkeletonTemplate();
       
    16 private:
       
    17 	CCmdSkeletonTemplate();
       
    18 private: // From CCommandBase.
       
    19 	virtual const TDesC& Name() const;
       
    20 	virtual void DoRunL();
       
    21 	virtual void ArgumentsL(RCommandArgumentList& aArguments);
       
    22 	virtual void OptionsL(RCommandOptionList& aOptions);
       
    23 private:
       
    24 	//TODO: arguments/options
       
    25 	};
       
    26 
       
    27 EXE_BOILER_PLATE(CCmdSkeletonTemplate)
       
    28 
       
    29 CCommandBase* CCmdSkeletonTemplate::NewLC()
       
    30 	{
       
    31 	CCmdSkeletonTemplate* self = new(ELeave) CCmdSkeletonTemplate();
       
    32 	CleanupStack::PushL(self);
       
    33 	self->BaseConstructL();
       
    34 	return self;
       
    35 	}
       
    36 
       
    37 CCmdSkeletonTemplate::~CCmdSkeletonTemplate()
       
    38 	{
       
    39 	}
       
    40 
       
    41 CCmdSkeletonTemplate::CCmdSkeletonTemplate()
       
    42 	{
       
    43 	}
       
    44 
       
    45 const TDesC& CCmdSkeletonTemplate::Name() const
       
    46 	{
       
    47 	_LIT(KName, "skeletontemplate");	
       
    48 	return KName;
       
    49 	}
       
    50 
       
    51 void CCmdSkeletonTemplate::ArgumentsL(RCommandArgumentList& aArguments)
       
    52 	{
       
    53 	//TODO: aArguments.AppendStringL(iString, _L("example_arg"));
       
    54 	//TODO: Also remember to update the CIF file for any arguments you add.
       
    55 	}
       
    56 
       
    57 void CCmdSkeletonTemplate::OptionsL(RCommandOptionList& aOptions)
       
    58 	{
       
    59 	//TODO: aOptions.AppendBoolL(iOpt, _L("example_opt"));
       
    60 	//TODO: Also remember to update the CIF file for any options you add.
       
    61 	}
       
    62 
       
    63 void CCmdSkeletonTemplate::DoRunL()
       
    64 	{
       
    65 	// TODO: Add implementation.
       
    66 	}