Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  AlertNotification.h

  Sprache: C
 

/* 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_AlertNotification_h_
#define mozilla_AlertNotification_h_

#include "imgINotificationObserver.h"
#include "nsIAlertsService.h"
#include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h"
#include "nsICancelable.h"
#include "nsINamed.h"
#include "nsIPrincipal.h"
#include "nsString.h"
#include "nsITimer.h"

namespace mozilla {

class AlertNotification : public nsIAlertNotification {
 public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIALERTNOTIFICATION

 protected:
  virtual ~AlertNotification() = default;

 private:
  nsresult InitId();

  nsString mId;
  nsString mName;
  nsString mImageURL;
  nsCOMPtr<imgIContainer> mImage;
  nsString mTitle;
  nsString mText;
  bool mTextClickable = false;
  nsString mCookie;
  nsString mDir;
  nsString mLang;
  bool mRequireInteraction = false;
  nsString mData;
  nsCOMPtr<nsIPrincipal> mPrincipal;
  bool mInPrivateBrowsing = false;
  bool mSilent = false;
  nsTArray<uint32_t> mVibrate;
  nsTArray<RefPtr<nsIAlertAction>> mActions;
  nsString mOpaqueRelaunchData;
};

class AlertAction : public nsIAlertAction {
  NS_DECL_ISUPPORTS
  NS_DECL_NSIALERTACTION

  AlertAction(const nsAString& aAction, const nsAString& aTitle);
  static Result<already_AddRefed<AlertAction>, nsresult> Copy(
      nsIAlertAction& aAction);

 protected:
  virtual ~AlertAction() = default;

  nsString mAction;
  nsString mTitle;
};

}  // namespace mozilla

#endif /* mozilla_AlertNotification_h_ */

Messung V0.5 in Prozent
C=86 H=95 G=90

¤ Dauer der Verarbeitung: 0.16 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002