embedding/components/windowwatcher/src/nsDialogParamBlock.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/embedding/components/windowwatcher/src/nsDialogParamBlock.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     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 __nsDialogParamBlock_h
    1.10 +#define __nsDialogParamBlock_h
    1.11 +
    1.12 +#include "nsIDialogParamBlock.h"
    1.13 +#include "nsIMutableArray.h"
    1.14 +#include "nsCOMPtr.h"
    1.15 +
    1.16 +// {4E4AAE11-8901-46cc-8217-DAD7C5415873}
    1.17 +#define NS_DIALOGPARAMBLOCK_CID \
    1.18 + {0x4e4aae11, 0x8901, 0x46cc, {0x82, 0x17, 0xda, 0xd7, 0xc5, 0x41, 0x58, 0x73}}
    1.19 +
    1.20 +class nsString;
    1.21 +
    1.22 +class nsDialogParamBlock: public nsIDialogParamBlock
    1.23 +{
    1.24 +public: 	
    1.25 +  nsDialogParamBlock();
    1.26 +  virtual ~nsDialogParamBlock();
    1.27 +   
    1.28 +  NS_DECL_NSIDIALOGPARAMBLOCK
    1.29 +  NS_DECL_ISUPPORTS	
    1.30 +
    1.31 +private:
    1.32 +
    1.33 +  enum {kNumInts = 8, kNumStrings = 16};
    1.34 +
    1.35 +  nsresult InBounds(int32_t inIndex, int32_t inMax) {
    1.36 +    return inIndex >= 0 && inIndex < inMax ? NS_OK : NS_ERROR_ILLEGAL_VALUE;
    1.37 +  }
    1.38 +  
    1.39 +  int32_t mInt[kNumInts];
    1.40 +  int32_t mNumStrings;
    1.41 +  nsString* mString;
    1.42 +  nsCOMPtr<nsIMutableArray> mObjects;	
    1.43 +};
    1.44 +
    1.45 +#endif
    1.46 +

mercurial