예제 #1
0
CCommandParser* CCommandParser::NewLC(MConnectionDataCallbacks& aObserver)
    {
    CCommandParser* self = new (ELeave) CCommandParser(aObserver);
    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
    }
예제 #2
0
CCommandParser* CCommandParser::NewL(CConsoleBase& aConsl)
//
// Create and connect client with leaving
//
    {
    CCommandParser* p = new (ELeave) CCommandParser(aConsl);
    CleanupStack::PushL(p);
    p->ConstructL();
    CleanupStack::Pop(p);
    return p;
    }