zeroconf/dnsparser/inc/cdnsquestion.h
changeset 14 da856f45b798
equal deleted inserted replaced
12:78fbd574edf4 14:da856f45b798
       
     1 /*
       
     2 * Copyright (c) 2009 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 
       
    19 #ifndef __CDNSQUESTION_H__
       
    20 #define __CDNSQUESTION_H__
       
    21 
       
    22 #include <mdns/cdnssection.h>
       
    23 #include <mdns/tdnsheader.h>
       
    24 #include <mdns/dnsconstants.h>
       
    25 
       
    26 /*                                  1  1  1  1  1  1
       
    27       0  1  2  3  4  5  6  7  8  9  0  1  2  3  4  5
       
    28     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
       
    29     |                                               |
       
    30     /                     QNAME                     /
       
    31     /                                               /
       
    32     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
       
    33     |                     QTYPE                     |
       
    34     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
       
    35     |UC                   QCLASS                    |
       
    36     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
       
    37 
       
    38 */
       
    39 
       
    40 class CDnsQuestion : public CDnsSection
       
    41      {
       
    42 public:	
       
    43 	IMPORT_C ~CDnsQuestion();
       
    44 	IMPORT_C  static CDnsQuestion* NewL();
       
    45 	
       
    46 	IMPORT_C  TBool IsUnicast()const;
       
    47 	IMPORT_C  void SetUnicast(TBool);
       
    48 	
       
    49 	IMPORT_C TUint16 Size()const;
       
    50 
       
    51 private:
       
    52 	CDnsQuestion();
       
    53      };
       
    54 	 
       
    55 #endif	//__CDNSQUESTION_H__