dom/mobilemessage/src/ipc/SmsIPCService.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/mobilemessage/src/ipc/SmsIPCService.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef mozilla_dom_mobilemessage_SmsIPCService_h
    1.10 +#define mozilla_dom_mobilemessage_SmsIPCService_h
    1.11 +
    1.12 +#include "nsISmsService.h"
    1.13 +#include "nsIMmsService.h"
    1.14 +#include "nsIMobileMessageDatabaseService.h"
    1.15 +#include "nsIObserver.h"
    1.16 +#include "mozilla/Attributes.h"
    1.17 +
    1.18 +namespace mozilla {
    1.19 +namespace dom {
    1.20 +namespace mobilemessage {
    1.21 +
    1.22 +class PSmsChild;
    1.23 +
    1.24 +class SmsIPCService MOZ_FINAL : public nsISmsService
    1.25 +                              , public nsIMmsService
    1.26 +                              , public nsIMobileMessageDatabaseService
    1.27 +                              , public nsIObserver
    1.28 +{
    1.29 +public:
    1.30 +  NS_DECL_ISUPPORTS
    1.31 +  NS_DECL_NSISMSSERVICE
    1.32 +  NS_DECL_NSIMMSSERVICE
    1.33 +  NS_DECL_NSIMOBILEMESSAGEDATABASESERVICE
    1.34 +  NS_DECL_NSIOBSERVER
    1.35 +
    1.36 +  SmsIPCService();
    1.37 +
    1.38 +private:
    1.39 +  uint32_t mMmsDefaultServiceId;
    1.40 +  uint32_t mSmsDefaultServiceId;
    1.41 +};
    1.42 +
    1.43 +} // namespace mobilemessage
    1.44 +} // namespace dom
    1.45 +} // namespace mozilla
    1.46 +
    1.47 +#endif // mozilla_dom_mobilemessage_SmsIPCService_h

mercurial