コード例 #1
0
ECode RetrieveConf::constructor(
    /* [in] */ IPduHeaders* headers)
{
    MultimediaMessagePdu::constructor(headers);
    SetTransactionId(GenerateTransactionId());
    return NOERROR;
}
コード例 #2
0
ECode RetrieveConf::constructor()
{
    MultimediaMessagePdu::constructor();
    SetMessageType(IPduHeaders::MESSAGE_TYPE_RETRIEVE_CONF);
    SetTransactionId(GenerateTransactionId());
    return NOERROR;
}
コード例 #3
0
ファイル: SendReq.cpp プロジェクト: elastos/Elastos5
ECode SendReq::constructor()
{
    MultimediaMessagePdu::constructor();

    // try {
        SetMessageType(IPduHeaders::MESSAGE_TYPE_SEND_REQ);
        SetMmsVersion(IPduHeaders::CURRENT_MMS_VERSION);
        // FIXME: Content-type must be decided according to whether
        // SMIL part present.
        SetContentType(String("application/vnd.wap.multipart.related").GetBytes());
        AutoPtr<IEncodedStringValue> p;
        CEncodedStringValue::New(IPduHeaders::FROM_INSERT_ADDRESS_TOKEN_STR.GetBytes(), (IEncodedStringValue**)&p);
        SetFrom(p);
        SetTransactionId(GenerateTransactionId());
    // } catch (InvalidHeaderValueException e) {
    //     // Impossible to reach here since all headers we set above are valid.
    //     Log.e(TAG, "Unexpected InvalidHeaderValueException.", e);
    //     throw new RuntimeException(e);
    // }
    return NOERROR;
}