tools/createsrc-templates/NonCifFshellCmd/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 const TDesC& Description() const;
       
    21 	virtual void DoRunL();
       
    22 	virtual void ArgumentsL(RCommandArgumentList& aArguments);
       
    23 	virtual void OptionsL(RCommandOptionList& aOptions);
       
    24 private:
       
    25 	//TODO: arguments/options
       
    26 	};
       
    27 
       
    28 EXE_BOILER_PLATE(CCmdSkeletonTemplate)
       
    29 
       
    30 CCommandBase* CCmdSkeletonTemplate::NewLC()
       
    31 	{
       
    32 	CCmdSkeletonTemplate* self = new(ELeave) CCmdSkeletonTemplate();
       
    33 	CleanupStack::PushL(self);
       
    34 	self->BaseConstructL();
       
    35 	return self;
       
    36 	}
       
    37 
       
    38 CCmdSkeletonTemplate::~CCmdSkeletonTemplate()
       
    39 	{
       
    40 	}
       
    41 
       
    42 CCmdSkeletonTemplate::CCmdSkeletonTemplate()
       
    43 	{
       
    44 	}
       
    45 
       
    46 const TDesC& CCmdSkeletonTemplate::Name() const
       
    47 	{
       
    48 	_LIT(KName, "skeletontemplate");	
       
    49 	return KName;
       
    50 	}
       
    51 
       
    52 const TDesC& CCmdSkeletonTemplate::Description() const
       
    53 	{
       
    54 	_LIT(KDescription, "[[DESCRIPTION]]");
       
    55 	return KDescription;
       
    56 	}
       
    57 
       
    58 void CCmdSkeletonTemplate::ArgumentsL(RCommandArgumentList& aArguments)
       
    59 	{
       
    60 	//TODO: aArguments.AppendStringL(iStringArgument, _L("argument-name"), _L("description goes here"));
       
    61 	}
       
    62 
       
    63 void CCmdSkeletonTemplate::OptionsL(RCommandOptionList& aOptions)
       
    64 	{
       
    65 	//TODO: aOptions.AppendBoolL(iBoolOption, 'o' _L("long-option-name"), _L("description goes here"));
       
    66 	}
       
    67 
       
    68 void CCmdSkeletonTemplate::DoRunL()
       
    69 	{
       
    70 	// TODO: Add implementation.
       
    71 	}