gecko-dev/dom/mobilemessage/ipc/SmsChild.h
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00

146 lines
3.6 KiB
C++

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_dom_mobilemessage_SmsChild_h
#define mozilla_dom_mobilemessage_SmsChild_h
#include "mozilla/dom/mobilemessage/PSmsChild.h"
#include "mozilla/dom/mobilemessage/PSmsRequestChild.h"
#include "mozilla/dom/mobilemessage/PMobileMessageCursorChild.h"
#include "nsIDOMDOMCursor.h"
#include "nsIMobileMessageCallback.h"
#include "nsIMobileMessageCursorCallback.h"
namespace mozilla {
namespace dom {
namespace mobilemessage {
class SmsChild : public PSmsChild
{
public:
SmsChild()
{
MOZ_COUNT_CTOR(SmsChild);
}
protected:
virtual ~SmsChild()
{
MOZ_COUNT_DTOR(SmsChild);
}
virtual void
ActorDestroy(ActorDestroyReason aWhy) override;
virtual bool
RecvNotifyReceivedMessage(const MobileMessageData& aMessage) override;
virtual bool
RecvNotifyRetrievingMessage(const MobileMessageData& aMessage) override;
virtual bool
RecvNotifySendingMessage(const MobileMessageData& aMessage) override;
virtual bool
RecvNotifySentMessage(const MobileMessageData& aMessage) override;
virtual bool
RecvNotifyFailedMessage(const MobileMessageData& aMessage) override;
virtual bool
RecvNotifyDeliverySuccessMessage(const MobileMessageData& aMessage) override;
virtual bool
RecvNotifyDeliveryErrorMessage(const MobileMessageData& aMessage) override;
virtual bool
RecvNotifyReceivedSilentMessage(const MobileMessageData& aMessage) override;
virtual bool
RecvNotifyReadSuccessMessage(const MobileMessageData& aMessage) override;
virtual bool
RecvNotifyReadErrorMessage(const MobileMessageData& aMessage) override;
virtual bool
RecvNotifyDeletedMessageInfo(const DeletedMessageInfoData& aDeletedInfo) override;
virtual PSmsRequestChild*
AllocPSmsRequestChild(const IPCSmsRequest& aRequest) override;
virtual bool
DeallocPSmsRequestChild(PSmsRequestChild* aActor) override;
virtual PMobileMessageCursorChild*
AllocPMobileMessageCursorChild(const IPCMobileMessageCursor& aCursor) override;
virtual bool
DeallocPMobileMessageCursorChild(PMobileMessageCursorChild* aActor) override;
};
class SmsRequestChild : public PSmsRequestChild
{
friend class SmsChild;
nsCOMPtr<nsIMobileMessageCallback> mReplyRequest;
public:
explicit SmsRequestChild(nsIMobileMessageCallback* aReplyRequest);
protected:
virtual ~SmsRequestChild()
{
MOZ_COUNT_DTOR(SmsRequestChild);
}
virtual void
ActorDestroy(ActorDestroyReason aWhy) override;
virtual bool
Recv__delete__(const MessageReply& aReply) override;
};
class MobileMessageCursorChild : public PMobileMessageCursorChild
, public nsICursorContinueCallback
{
friend class SmsChild;
nsCOMPtr<nsIMobileMessageCursorCallback> mCursorCallback;
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICURSORCONTINUECALLBACK
explicit MobileMessageCursorChild(nsIMobileMessageCursorCallback* aCallback);
protected:
virtual ~MobileMessageCursorChild()
{
MOZ_COUNT_DTOR(MobileMessageCursorChild);
}
virtual void
ActorDestroy(ActorDestroyReason aWhy) override;
virtual bool
RecvNotifyResult(const MobileMessageCursorData& aData) override;
virtual bool
Recv__delete__(const int32_t& aError) override;
private:
void
DoNotifyResult(const nsTArray<MobileMessageData>& aData);
void
DoNotifyResult(const nsTArray<ThreadData>& aData);
};
} // namespace mobilemessage
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_mobilemessage_SmsChild_h