equal
deleted
inserted
replaced
634 IMPORT_C static HBufC8* NarrowLC(const TDesC& aDes); |
634 IMPORT_C static HBufC8* NarrowLC(const TDesC& aDes); |
635 IMPORT_C static HBufC* EscapeLC(const TDesC& aDes, const TChar& aEscapeChar); |
635 IMPORT_C static HBufC* EscapeLC(const TDesC& aDes, const TChar& aEscapeChar); |
636 IMPORT_C static HBufC8* EscapeLC(const TDesC8& aDes, const TChar& aEscapeChar); |
636 IMPORT_C static HBufC8* EscapeLC(const TDesC8& aDes, const TChar& aEscapeChar); |
637 private: |
637 private: |
638 static HBufC* ReadLC(TLex& aLex, const TChar& aEscapeChar, CCommandBase* aErrorContext, TUint aReadMode); |
638 static HBufC* ReadLC(TLex& aLex, const TChar& aEscapeChar, CCommandBase* aErrorContext, TUint aReadMode); |
|
639 }; |
|
640 |
|
641 enum TCommandExtensionVersion |
|
642 { |
|
643 ECommandExtensionV1 = 1, |
|
644 }; |
|
645 |
|
646 class MCommandExtensionsV1 |
|
647 { |
|
648 public: |
|
649 IMPORT_C virtual TCommandExtensionVersion ExtensionVersion() const; // Don't override this yourself! |
|
650 |
|
651 // Override this if you have custom error codes you want CCommandBase to understand |
|
652 IMPORT_C virtual const TDesC* StringifyError(TInt aError) const; |
639 }; |
653 }; |
640 |
654 |
641 class CCommandBase : public CActive |
655 class CCommandBase : public CActive |
642 { |
656 { |
643 public: |
657 public: |
711 virtual const TDesC& Name() const = 0; |
725 virtual const TDesC& Name() const = 0; |
712 IMPORT_C virtual const TDesC& Description() const; |
726 IMPORT_C virtual const TDesC& Description() const; |
713 protected: |
727 protected: |
714 IMPORT_C CCommandBase(); |
728 IMPORT_C CCommandBase(); |
715 IMPORT_C CCommandBase(TUint aFlags); |
729 IMPORT_C CCommandBase(TUint aFlags); |
|
730 IMPORT_C void SetExtension(MCommandExtensionsV1* aExtension); |
716 IMPORT_C virtual void BaseConstructL(); |
731 IMPORT_C virtual void BaseConstructL(); |
717 IMPORT_C void CreateEnvironmentL(CEnvironment* aEnv); |
732 IMPORT_C void CreateEnvironmentL(CEnvironment* aEnv); |
718 |
733 |
719 protected: |
734 protected: |
720 virtual void DoRunL() = 0; |
735 virtual void DoRunL() = 0; |
794 HBufC* iPersistentConsoleName; |
809 HBufC* iPersistentConsoleName; |
795 CCommandCompleter* iCompleter; |
810 CCommandCompleter* iCompleter; |
796 CReaderChangeNotifier* iReadChangeNotifier; |
811 CReaderChangeNotifier* iReadChangeNotifier; |
797 TInt iCompletionReason; |
812 TInt iCompletionReason; |
798 CCommandInfoFile* iCif; |
813 CCommandInfoFile* iCif; |
|
814 MCommandExtensionsV1* iExtension; |
799 void* iSpare1; |
815 void* iSpare1; |
800 void* iSpare2; |
816 void* iSpare2; |
801 void* iSpare3; |
817 void* iSpare3; |
802 void* iSpare4; |
818 void* iSpare4; |
803 void* iSpare5; |
|
804 }; |
819 }; |
805 |
820 |
806 |
821 |
807 /** |
822 /** |
808 * @brief A helper class for creating and running child processes that share |
823 * @brief A helper class for creating and running child processes that share |