sdkcreationmw/sdkruntimes/MIDP/DebugAgent/src/JavaDebugAgentSettingsApItem.h
author rajpuroh
Mon, 08 Mar 2010 12:09:11 +0530
changeset 0 b26acd06ea60
permissions -rw-r--r--
First Contribution of SDK components
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     1
/*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     2
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     3
* All rights reserved.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     4
* This component and the accompanying materials are made available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     6
* which accompanies this distribution, and is available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     8
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     9
* Initial Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    11
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    12
* Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    13
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    14
* Description: 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    15
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    16
*/
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    17
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    18
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    19
#ifndef __JAVA_DEBUG_AGENT_SETTINGS_ACCESS_POINT_ITEM_H_
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    20
#define __JAVA_DEBUG_AGENT_SETTINGS_ACCESS_POINT_ITEM_H_
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    21
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    22
#include <commdb.h>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    23
#include <cdblen.h>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    24
#include <AknSettingItemList.h>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    25
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    26
class CJavaDebugAgentSettingsApItem : public CAknSettingItem
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    27
{
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    28
private:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    29
    TInt* iApId;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    30
    HBufC* iAlwaysAskText;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    31
    HBufC* iUserDefinedText;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    32
    CCommsDatabase* iCommsDb;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    33
    TBuf<KCommsDbSvrMaxFieldLength> iApName;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    34
    TBool iApNameValid;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    35
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    36
public:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    37
    CJavaDebugAgentSettingsApItem(TInt aId, TInt* aApId);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    38
    ~CJavaDebugAgentSettingsApItem();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    39
    virtual void EditItemL(TBool aCalledFromMenu);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    40
    virtual const TDesC& SettingTextL();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    41
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    42
private:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    43
    TBool AlwaysAskOrSelectApL(TInt* aUserDefined);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    44
    TInt UpdateApName();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    45
    void UpdateApNameL();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    46
    CCommsDatabase* CommsDbL();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    47
    const TDesC* AlwaysAskTextL();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    48
    const TDesC* UserDefinedTextL();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    49
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    50
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    51
#endif // __JAVA_DEBUG_AGENT_SETTINGS_ACCESS_POINT_ITEM_H_
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    52
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    53
/**
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    54
 * Local Variables:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    55
 * mode: c++
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    56
 * c-basic-offset: 4
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    57
 * indent-tabs-mode: nil
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    58
 * End:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    59
 */