67 } |
67 } |
68 Message(EDebug, _L("VT100 console create completed with err=%d"), err); |
68 Message(EDebug, _L("VT100 console create completed with err=%d"), err); |
69 return err; |
69 return err; |
70 } |
70 } |
71 |
71 |
72 EXPORT_C void CVtcConsoleBase::ConstructL(const TDesC&) |
72 EXPORT_C void CVtcConsoleBase::ConstructL(const TDesC& aTitle) |
|
73 { |
|
74 ConstructL(aTitle, ETrue); |
|
75 } |
|
76 |
|
77 EXPORT_C void CVtcConsoleBase::ConstructL(const TDesC&, TBool aConsoleSupportsSizeDetect) |
73 { |
78 { |
74 iIniFile = LtkUtils::CIniFile::NewL(KIniFileName, KIniDesciptionFile); |
79 iIniFile = LtkUtils::CIniFile::NewL(KIniFileName, KIniDesciptionFile); |
75 |
80 |
76 TSize screenSize(80, 24); // If sizeDetect is not specified, we default to (and only support) 80x24 |
81 TSize screenSize(80, 24); // If sizeDetect is not specified, we default to (and only support) 80x24 |
77 if (iIniFile->GetBool(KAttConsoleSizeDetect)) |
82 if (aConsoleSupportsSizeDetect && iIniFile->GetBool(KAttConsoleSizeDetect)) |
78 { |
83 { |
79 DetectScreenSizeL(screenSize); |
84 DetectScreenSizeL(screenSize); |
80 } |
85 } |
81 iOutputController = CVtConsoleOutputController::NewL(*this, *iIniFile, screenSize); |
86 iOutputController = CVtConsoleOutputController::NewL(*this, *iIniFile, screenSize); |
82 iInputController = CVtConsoleInputController::NewL(*this, *iIniFile); |
87 iInputController = CVtConsoleInputController::NewL(*this, *iIniFile); |