javaextensions/midppush/inc/pushregdata.h
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PUSHREGDATA_H
       
    19 #define PUSHREGDATA_H
       
    20 
       
    21 #include <string>
       
    22 
       
    23 namespace java
       
    24 {
       
    25 namespace push
       
    26 {
       
    27 
       
    28 class PushRegData
       
    29 {
       
    30 public:
       
    31 
       
    32     explicit PushRegData(std::wstring aUri,std::wstring aFilter)
       
    33             :mUri(aUri),mFilter(aFilter) {}
       
    34     virtual ~PushRegData() {}
       
    35     PushRegData(const PushRegData& x)
       
    36     {
       
    37         *this = x;
       
    38     }
       
    39     PushRegData &operator=(const PushRegData& x)
       
    40     {
       
    41         mUri = x.mUri;
       
    42         mFilter = x.mFilter;
       
    43         return *this;
       
    44     }
       
    45     bool operator==(const PushRegData& x) const
       
    46     {
       
    47         return (mUri == x.mUri);
       
    48     }
       
    49     std::wstring mUri;
       
    50     std::wstring mFilter;
       
    51 };
       
    52 
       
    53 }// end namespace push
       
    54 }// end namespace java
       
    55 
       
    56 #endif // PUSHREGDATA_H
       
    57