code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using DevExpress.XtraEditors; namespace HOTEL_MANAGEMENT { public partial class frmTimKiem : DevExpress.XtraEditors.XtraForm { ...
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/HOTEL_MANAGEMENT/frmTimKiem.cs
C#
asf20
905
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/DTO/Properties/AssemblyInfo.cs
C#
asf20
1,377
using System; using System.Collections.Generic; using System.Text; namespace DTO { public class CNGUOIDUNGDTO { #region "Atributes" private int m_MaNguoiDung; private string m_TenDangNhap; private string m_MatKhau; private string m_TenNguoiDung; priv...
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/DTO/CNGUOIDUNGDTO.cs
C#
asf20
3,266
using System; using System.Collections.Generic; using System.Text; namespace DTO { public class CPHIEUTHUEDTO { #region "Atributes" private int m_MaPhieuThue; private DateTime m_NgayBatDau; private bool m_TinhTrang; private int m_MaPhong; private ...
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/DTO/CPHIEUTHUEDTO.cs
C#
asf20
2,021
using System; using System.Collections.Generic; using System.Text; namespace DTO { public class CHOADONDTO { #region "Atributes" private int m_MaHoaDon; private string m_TenKhachThanhToan; private string m_DiaChi; private int m_TriGia; private DateTi...
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/DTO/CHOADONDTO.cs
C#
asf20
2,209
using System; using System.Collections.Generic; using System.Text; namespace DTO { public class CLOAIKHACHTHUEDTO { #region "Atributes" private int m_MaLoaiKhachThue; private string m_TenLoaiKhachThue; private double m_HeSoLoaiKhach; private bool m_TinhTrang...
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/DTO/CLOAIKHACHTHUEDTO.cs
C#
asf20
2,047
using System; using System.Collections.Generic; using System.Text; namespace DTO { public class CQUIDINHDTO { #region "Atributes" private int m_MaQuiDinh; private double m_HeSo; private string m_MoTa; private bool m_Duyet; private double m_HeSoMoi; ...
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/DTO/CQUIDINHDTO.cs
C#
asf20
1,543
using System; using System.Collections.Generic; using System.Text; namespace DTO { public class Class1 { } }
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/DTO/Class1.cs
C#
asf20
132
using System; using System.Collections.Generic; using System.Text; namespace DTO { public class CKHACHTHUEDTO { #region "Atributes" private int m_MaKhachThue; private string m_TenKhachThue; private DateTime m_NgaySinh; private string m_CMND; private ...
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/DTO/CKHACHTHUEDTO.cs
C#
asf20
3,020
using System; using System.Collections.Generic; using System.Text; namespace DTO { public class CLOAIPHONGDTO { #region "Atributes" private int m_MaLoaiPhong; private string m_TenLoaiPhong; private int m_DonGia; private bool m_Duyet; private bool m...
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/DTO/CLOAIPHONGDTO.cs
C#
asf20
1,938
using System; using System.Collections.Generic; using System.Text; namespace DTO { public class CLOAINGUOIDUNGDTO { #region "Atributes" private int m_MaLoaiNguoiDung; private string m_TenLoaiNguoiDung; private bool m_TinhTrang; #endregion #...
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/DTO/CLOAINGUOIDUNGDTO.cs
C#
asf20
1,292
using System; using System.Collections.Generic; using System.Text; namespace DTO { public class CPHONGDTO { #region "Atributes" private int m_MaPhong; private string m_TenPhong; private string m_TinhTrangPhong; private string m_GhiChu; private boo...
12ks-ttnn-8889
trunk/Source Code/HOTEL_MANAGEMENT/DTO/CPHONGDTO.cs
C#
asf20
2,209
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; import edu.wpi.first.wpilibj.buttons.DigitalIOButton; /** * This class is the glue that binds the controls on the physical operator * interface to the commands and command groups th...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/OI.java
Java
bsd
2,116
package edu.wpi.first.wpilibj.templates; /** * The RobotMap is a mapping from the ports sensors and actuators are wired into * to a variable name. This provides flexibility changing wiring, makes checking * the wiring easier and significantly reduces the number of magic numbers * floating around. */ publi...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/RobotMap.java
Java
bsd
549
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.templates.OI; import edu.wpi.first.wpilibj.templates.commands.CommandBase; /** * * @author Roksbot */ public class DriveWit...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/commands/DriveWithJoysticks.java
Java
bsd
1,149
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Roksbot */ public class DriveForward extends CommandBase { private static double TIME, SPEED; public DriveFor...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/commands/DriveForward.java
Java
bsd
1,151
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Roksbot */ public class TurnLeft extends CommandBase { private static double SPEED, TARGET_ANGLE; private static bool...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/commands/TurnLeft.java
Java
bsd
1,245
package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import edu.wpi.first.wpilibj.templates.OI; import edu.wpi.first.wpilibj.templates.subsystems.DriveTrain; import edu.wpi.first.wpilibj.templates.subsystems.Gy...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/commands/CommandBase.java
Java
bsd
1,394
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Roksbot */ public class GyroReturnAngle extends CommandBase { public GyroReturnAngle() { requires(cb_GYRO); } ...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/commands/GyroReturnAngle.java
Java
bsd
954
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Roksbot */ public class StrafeRight extends CommandBase { private static double SPEED; public StrafeRight(double speed, double tim...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/commands/StrafeRight.java
Java
bsd
1,121
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Roksbot */ public class StrafeLeft extends CommandBase { private static double SPEED; public StrafeLeft(double speed, double time)...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/commands/StrafeLeft.java
Java
bsd
1,101
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Roksbot */ public class DriveBackward extends CommandBase { private static double SPEED; public DriveBackward(double time, double ...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/commands/DriveBackward.java
Java
bsd
1,120
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Roksbot */ public class TurnRight extends CommandBase { private static double SPEED, TARGET_ANGLE; private static boo...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/commands/TurnRight.java
Java
bsd
1,208
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.Gyro; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.templates.RobotMap; import edu.wpi.first.wpili...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/subsystems/Gyroscope.java
Java
bsd
828
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.Compressor; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.templates.RobotMap; import edu.wpi.first...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/subsystems/CompressorSub.java
Java
bsd
784
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.CANJaguar; import edu.wpi.first.wpilibj.Gyro; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.RobotDrive; im...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/subsystems/DriveTrain.java
Java
bsd
2,942
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory...
1247-command-robot-2013
src/edu/wpi/first/wpilibj/templates/RobotTemplate.java
Java
bsd
2,492
package org.bulatnig.smpp.net; import org.bulatnig.smpp.pdu.Pdu; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.pdu.PduParser; import java.io.IOException; /** * Connection with SMPP entity. Converts bytes to PDU and PDU to bytes. The same * connection may be reused many times. * * @author Bu...
118896-smppclient
src/main/java/org/bulatnig/smpp/net/Connection.java
Java
bsd
1,233
package org.bulatnig.smpp.net.impl; import org.bulatnig.smpp.net.Connection; import org.bulatnig.smpp.pdu.Pdu; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.pdu.PduParser; import org.bulatnig.smpp.pdu.impl.DefaultPduParser; import org.bulatnig.smpp.util.ByteBuffer; import org.slf4j.Logger; import...
118896-smppclient
src/main/java/org/bulatnig/smpp/net/impl/TcpConnection.java
Java
bsd
3,022
package org.bulatnig.smpp; /** * General SMPP exception. * * @author Bulat Nigmatullin */ public class SmppException extends Exception { public SmppException() { super(); } public SmppException(String message) { super(message); } public SmppException(String message, Throwabl...
118896-smppclient
src/main/java/org/bulatnig/smpp/SmppException.java
Java
bsd
443
package org.bulatnig.smpp.pdu; /** * Standard PDU identificators. * * @author Bulat Nigmatullin */ public enum CommandId { INSTANCE; /** * This is a generic negative acknowledgement to an SMPP PDU submitted with * an invalid message header. A generic_nack response is returned in the * follo...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/CommandId.java
Java
bsd
9,610
package org.bulatnig.smpp.pdu; /** * Type of Number (TON). * * @author Bulat Nigmatullin */ public enum Ton { INSTANCE; /** * Unknown. */ public static final int UNKNOWN = 0; /** * International. */ public static final int INTERNATIONAL = 1; /** * National. */...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/Ton.java
Java
bsd
713
package org.bulatnig.smpp.pdu; import org.bulatnig.smpp.util.ByteBuffer; /** * Parses PDU's from bytes. * * @author Bulat Nigmatullin */ public interface PduParser { /** * Parse PDU. * * @param bb one pdu bytes * @return Pdu * @throws PduException pdu parsing failed */ Pdu p...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/PduParser.java
Java
bsd
364
package org.bulatnig.smpp.pdu; import org.bulatnig.smpp.SmppException; /** * PDU parsing failed. * * @author Bulat Nigmatullin */ public class PduException extends SmppException { public PduException() { super(); } public PduException(String message) { super(message); } publ...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/PduException.java
Java
bsd
482
package org.bulatnig.smpp.pdu; /** * Standard command statuses. * <p/> * The command_status field indicates the success or failure of an SMPP request. * It is relevant only in the SMPP response PDU and it must contain a NULL value * in an SMPP request PDU. * * @author Bulat Nigmatullin */ public enum CommandSt...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/CommandStatus.java
Java
bsd
5,846
package org.bulatnig.smpp.pdu; import org.bulatnig.smpp.util.ByteBuffer; /** * Protocol Data Unit. * * @author Bulat Nigmatullin */ public interface Pdu { /** * Header length. */ public static final int HEADER_LENGTH = 16; /** * Calculate and return PDU bytes. * * @return p...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/Pdu.java
Java
bsd
666
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.*; import org.bulatnig.smpp.pdu.tlv.impl.DefaultTlvParser; import org.bulatnig.smpp.pdu.tlv.TlvException; import org.bulatnig.smpp.pdu.tlv.TlvParser; import org.bulatnig.smpp.util.ByteBuffer; /** * Default PDU parser implementation. * * @author Bulat...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/DefaultPduParser.java
Java
bsd
3,252
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * BindTransceiver response PDU. * * @author Bulat Nigmatullin */ public class BindTra...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/BindTransceiverResp.java
Java
bsd
1,133
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; /** * EnquireLink response PDU. * * @author Bulat Nigmatullin */ public class EnquireLinkResp extends AbstractPdu { public EnquireLinkResp() { ...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/EnquireLinkResp.java
Java
bsd
537
package org.bulatnig.smpp.pdu.impl; import java.io.UnsupportedEncodingException; /** * SMSC Delivery Receipt parser. * <p/> * Examples: * id:c449ab9744f47b6af1879e49e75e4f40 sub:001 dlvrd:0 submit date:0610191018 done date:0610191018 stat:ACCEPTD err:0 text:This is an Acti * id:7220bb6bd0be98fa628de66590f80070 s...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/SmscDeliveryReceipt.java
Java
bsd
5,012
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * An ESME bound as a Transmitter is authorised to send short messages to the * SMSC and...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/BindTransmitter.java
Java
bsd
4,342
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * This message is sent by the SMSC to the ESME, when the SMSC has detected that * a par...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/AlertNotification.java
Java
bsd
3,524
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; /** * This message can be sent by either the ESME or SMSC and is used to provide a * confidencecheck of the communication path between an ESME and an SMSC....
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/EnquireLink.java
Java
bsd
908
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * The deliver_sm is issued by the SMSC to send a message to an ESME. Using this * comma...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/DeliverSm.java
Java
bsd
9,355
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; /** * The purpose of the SMPP unbind operation is to deregister an instance of an * ESME from the SMSC and inform the SMSC that the ESME no longer wishes t...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/Unbind.java
Java
bsd
817
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; /** * This is a generic negative acknowledgement to an SMPP PDU submitted with an * invalid message header. A generic_nack response is returned in the foll...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/GenericNack.java
Java
bsd
1,079
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * This command is issued by the ESME to query the status of a previously * submitted sh...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/QuerySm.java
Java
bsd
3,350
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.CommandStatus; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * SubmitSm response PDU. * * @author Bulat...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/SubmitSmResp.java
Java
bsd
1,625
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * An ESME bound as a Receiver is authorised to receive short messages from the * SMSC a...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/BindReceiver.java
Java
bsd
4,187
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * DeliverSm response PDU. * * @author Bulat Nigmatullin */ public class DeliverSmResp...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/DeliverSmResp.java
Java
bsd
786
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; /** * Unbind Response PDU. * * @author Bulat Nigmatullin */ public class UnbindResp extends AbstractPdu { public UnbindResp() { super(Comman...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/UnbindResp.java
Java
bsd
501
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.Pdu; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.pdu.tlv.Tlv; import org.bulatnig.smpp.pdu.tlv.TlvException; import org.bulatnig.smpp.util.ByteBuffer; import java.util.Map; /** * PDU header. * * @author Bulat Nigmatullin */ ...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/AbstractPdu.java
Java
bsd
2,996
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * BindReceiver response PDU. * * @author Bulat Nigmatullin */ public class BindReceiv...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/BindReceiverResp.java
Java
bsd
1,117
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * This operation is used by an ESME to submit a short message to the SMSC for * onward ...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/SubmitSm.java
Java
bsd
9,248
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * BindTransmitter response PDU. * * @author Bulat Nigmatullin */ public class BindTra...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/BindTransmitterResp.java
Java
bsd
1,132
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * QuerySM response PDU. * * @author Bulat Nigmatullin */ public class QuerySmResp ext...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/QuerySmResp.java
Java
bsd
2,479
package org.bulatnig.smpp.pdu.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.util.ByteBuffer; import org.bulatnig.smpp.util.TerminatingNullNotFoundException; /** * An ESME bound as a Transceiver is allowed to send messages to the SMSC and * receive ...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/impl/BindTransceiver.java
Java
bsd
4,183
package org.bulatnig.smpp.pdu; /** * Numbric Plan Indicator (NPI). * * @author Bulat Nigmatullin */ public enum Npi { INSTANCE; /** * Unknown. */ public static final int UNKNOWN = 0; /** * ISDN (E163/E164). */ public static final int ISDN = 1; /** * Data (X.121). ...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/Npi.java
Java
bsd
945
package org.bulatnig.smpp.pdu.tlv; /** * Standard TLV's Parameter Tags. * * @author Bulat Nigmatullin */ public enum ParameterTag { INSTANCE; /** * The dest_addr_subunit parameter is used to route messages when received * by a mobile station, for example to a smart card in the mobile station or ...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/tlv/ParameterTag.java
Java
bsd
12,317
package org.bulatnig.smpp.pdu.tlv; import org.bulatnig.smpp.util.ByteBuffer; /** * Optional Parameters are fields, which may be present in a message. Optional * Parameters provide a mechanism for the future introduction of new parameters, * as and when defined in future versions of the SMPP protocol.<br/> * <p/> ...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/tlv/Tlv.java
Java
bsd
1,804
package org.bulatnig.smpp.pdu.tlv; import org.bulatnig.smpp.util.ByteBuffer; import java.util.Map; /** * TLV parser. * * @author Bulat Nigmatullin */ public interface TlvParser { /** * Parse TLV's from bytes. * * @param bb byte buffer * @return map parameter tag to tlv, may be null ...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/tlv/TlvParser.java
Java
bsd
436
package org.bulatnig.smpp.pdu.tlv.impl; import org.bulatnig.smpp.pdu.tlv.Tlv; import org.bulatnig.smpp.pdu.tlv.TlvException; import org.bulatnig.smpp.util.ByteBuffer; /** * General TLV implementation. * * @author Bulat Nigmatullin */ public class TlvImpl implements Tlv { private final int tag; private b...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/tlv/impl/TlvImpl.java
Java
bsd
947
package org.bulatnig.smpp.pdu.tlv.impl; import org.bulatnig.smpp.pdu.tlv.Tlv; import org.bulatnig.smpp.pdu.tlv.TlvException; import org.bulatnig.smpp.pdu.tlv.TlvParser; import org.bulatnig.smpp.pdu.tlv.impl.TlvImpl; import org.bulatnig.smpp.util.ByteBuffer; import java.util.HashMap; import java.util.Map; /** * Defa...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/tlv/impl/DefaultTlvParser.java
Java
bsd
1,211
package org.bulatnig.smpp.pdu.tlv; import org.bulatnig.smpp.SmppException; /** * TLV parsing failed. * * @author Bulat Nigmatullin */ public class TlvException extends SmppException { public TlvException() { super(); } public TlvException(String message) { super(message); } ...
118896-smppclient
src/main/java/org/bulatnig/smpp/pdu/tlv/TlvException.java
Java
bsd
486
package org.bulatnig.smpp.util; import org.bulatnig.smpp.SmppException; /** * C-Octet Sring terminating null character not found. * * @author Bulat Nigmatullin */ public class TerminatingNullNotFoundException extends SmppException { public TerminatingNullNotFoundException() { super("C-Octet String te...
118896-smppclient
src/main/java/org/bulatnig/smpp/util/TerminatingNullNotFoundException.java
Java
bsd
358
package org.bulatnig.smpp.util; import java.io.UnsupportedEncodingException; /** * Converts java types to byte array according to SMPP protocol. * You should remember, that all SMPP simple numeric types are unsigned, * but Java types are always signed. * <p/> * Not thread safe. * * @author Bulat Nigmatullin *...
118896-smppclient
src/main/java/org/bulatnig/smpp/util/ByteBuffer.java
Java
bsd
12,069
package org.bulatnig.smpp.session; /** * Session state. * * @author Bulat Nigmatullin */ public enum State { CONNECTED, DISCONNECTED, RECONNECTING }
118896-smppclient
src/main/java/org/bulatnig/smpp/session/State.java
Java
bsd
166
package org.bulatnig.smpp.session; import org.bulatnig.smpp.pdu.Pdu; import org.bulatnig.smpp.pdu.PduException; import java.io.IOException; /** * Asynchronous session with SMSC. * Supports connection by sending EnquireLink requests, session reuse (reconnect operations), * automatically reconnects on IO failure af...
118896-smppclient
src/main/java/org/bulatnig/smpp/session/Session.java
Java
bsd
2,737
package org.bulatnig.smpp.session; /** * Track session connects and disconnects. * * @author Bulat Nigmatullin */ public interface StateListener { /** * Session state changed to new state. * * @param state new state * @param e failure reason, may be null */ void changed(State stat...
118896-smppclient
src/main/java/org/bulatnig/smpp/session/StateListener.java
Java
bsd
340
package org.bulatnig.smpp.session.impl; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.Pdu; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.session.Session; import org.bulatnig.smpp.session.MessageListener; import org.bulatnig.smpp.session.StateListener; import org.slf4j.Logge...
118896-smppclient
src/main/java/org/bulatnig/smpp/session/impl/LimitingSession.java
Java
bsd
3,028
package org.bulatnig.smpp.session.impl; import org.bulatnig.smpp.session.State; import org.bulatnig.smpp.session.StateListener; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Session default state listener implementation. Just print new session state. * * @author Bulat Nigmatullin */ public class ...
118896-smppclient
src/main/java/org/bulatnig/smpp/session/impl/DefaultStateListener.java
Java
bsd
602
package org.bulatnig.smpp.session.impl; import org.bulatnig.smpp.pdu.Pdu; import org.bulatnig.smpp.session.MessageListener; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Session default message listener implementation, just print received PDU's class names. * * @author Bulat Nigmatullin */ public...
118896-smppclient
src/main/java/org/bulatnig/smpp/session/impl/DefaultMessageListener.java
Java
bsd
629
package org.bulatnig.smpp.session.impl; import org.bulatnig.smpp.net.Connection; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.CommandStatus; import org.bulatnig.smpp.pdu.Pdu; import org.bulatnig.smpp.pdu.PduException; import org.bulatnig.smpp.pdu.impl.EnquireLink; import org.bulatnig.smpp.pdu.i...
118896-smppclient
src/main/java/org/bulatnig/smpp/session/impl/BasicSession.java
Java
bsd
11,631
package org.bulatnig.smpp.session; import org.bulatnig.smpp.pdu.Pdu; /** * Session incoming messages listener. * * @author Bulat Nigmatullin */ public interface MessageListener { /** * Process incoming PDU. * * @param pdu incoming PDU from SMSC */ void received(Pdu pdu); }
118896-smppclient
src/main/java/org/bulatnig/smpp/session/MessageListener.java
Java
bsd
312
package org.bulatnig.smpp.testutil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.List; /** * SMSC stub implementation. ...
118896-smppclient
src/test/java/org/bulatnig/smpp/testutil/SimpleSmscStub.java
Java
bsd
2,336
package org.bulatnig.smpp.testutil; import org.bulatnig.smpp.pdu.CommandId; import org.bulatnig.smpp.pdu.impl.BindTransceiverResp; import org.bulatnig.smpp.pdu.impl.EnquireLinkResp; import org.bulatnig.smpp.pdu.impl.SubmitSmResp; import org.bulatnig.smpp.pdu.impl.UnbindResp; import org.bulatnig.smpp.util.ByteBuffer; i...
118896-smppclient
src/test/java/org/bulatnig/smpp/testutil/ComplexSmscStub.java
Java
bsd
4,444
package org.bulatnig.smpp.testutil; import org.bulatnig.smpp.pdu.Pdu; import org.bulatnig.smpp.pdu.impl.DefaultPduParser; import org.bulatnig.smpp.pdu.impl.DeliverSm; import org.bulatnig.smpp.util.ByteBuffer; /** * Useful class for parsing hex dumps. * * @author Bulat Nigmatullin */ public class HexStringParser {...
118896-smppclient
src/test/java/org/bulatnig/smpp/testutil/HexStringParser.java
Java
bsd
1,277
package org.bulatnig.smpp.testutil; import java.util.concurrent.atomic.AtomicInteger; /** * Generate unique port for each test. * * @author Bulat Nigmatullin */ public enum UniquePortGenerator { INSTANCE; /** * Values through 1 to 1024 reserved. So we are starting from 1025. */ private stat...
118896-smppclient
src/test/java/org/bulatnig/smpp/testutil/UniquePortGenerator.java
Java
bsd
459
package org.bulatnig.smpp.util; import java.io.UnsupportedEncodingException; /** * Converts java types to byte array according to SMPP protocol. * Implemented, using java.nio.ByteBuffer as template. * You should remember, that all SMPP simple numeric types are unsigned, * but Java types are always signed. * <p/>...
118896-smppclient
src/test/java/org/bulatnig/smpp/util/PositioningByteBuffer.java
Java
bsd
12,178
package org.bulatnig.smpp.util; import org.junit.Test; /** * ByteBuffer performance comparison. * * @author Bulat Nigmatullin */ public class ByteBufferPerf { @Test public void test() { for (int i = 0; i < 10; i++) { test0(); } } private void test0() { long st...
118896-smppclient
src/test/java/org/bulatnig/smpp/util/ByteBufferPerf.java
Java
bsd
1,988
/* Based on vimperator.org home page layout. */ #main-container { width: 775px; margin: 55px auto; } #img-container { display: table-cell; vertical-align: middle; width: 775px; height: 440px; border: 5px solid black; background-repeat: no-repeat; background-image: url(chrome://vimp...
0xcc0xcc0xcc-vimp-labs
vimperator/skin/about.css
CSS
mit
792
// Header: const Name = "Vimperator"; /* * We can't load our modules here, so the following code is sadly * duplicated: .w !sh vimdiff ../../*'/components/commandline-handler.js' */ // Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the License.t...
0xcc0xcc0xcc-vimp-labs
vimperator/components/commandline-handler.js
JavaScript
mit
1,530
// Copyright (c) 2008-2009 Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /* Adds support for data: URIs with chrome privileges * and fragment identifiers. * * "chrome-data:" <content-type> [; <fl...
0xcc0xcc0xcc-vimp-labs
vimperator/components/protocols.js
JavaScript
mit
11,525
// Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const Name = "Vimperator"; /* * We can't load our modules here, so the following code is sadly * duplicated: .w !sh vimdiff ../../*'/components/about-...
0xcc0xcc0xcc-vimp-labs
vimperator/components/about-handler.js
JavaScript
mit
1,402
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2009 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file in...
0xcc0xcc0xcc-vimp-labs
vimperator/content/config.js
JavaScript
mit
14,905
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>About:Vimperator</title> <link rel="stylesheet" href="chrome://vimperator/skin/about.css" type="text/css" /> ...
0xcc0xcc0xcc-vimp-labs
vimperator/content/about.html
HTML
mit
1,234
// Copyright (c) 2012 by Martin Stubenschrott <stubenschrott AT vimperator> // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const IgnoreKeys = Module("ignoreKeys", { requires: ["config", "storage"], init: function init() { ...
0xcc0xcc0xcc-vimp-labs
vimperator/content/ignorekeys.js
JavaScript
mit
5,661
// Copyright (c) 2011-2012 by teramako <teramako at Gmail> // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ // TODO: many methods do not work with Thunderbird correctly yet /** * @instance tabgroup */ const TabGro...
0xcc0xcc0xcc-vimp-labs
vimperator/content/tabgroup.js
JavaScript
mit
14,663
#### configuration VERSION = 3.8 NAME = vimperator include ../common/Makefile
0xcc0xcc0xcc-vimp-labs
vimperator/Makefile
Makefile
mit
95
// Copyright (c) 2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. // Script to find regressions // // It should use as few liberator methods as possible, but fall back to standa...
0xcc0xcc0xcc-vimp-labs
vimperator/regressions.js
JavaScript
mit
10,479
au BufNewFile,BufRead *vimperatorrc*,*.vimp set filetype=vimperator
0xcc0xcc0xcc-vimp-labs
vimperator/contrib/vim/ftdetect/vimperator.vim
Vim Script
mit
68
VIMBALL = vimperator.vba vimball: mkvimball.txt syntax/vimperator.vim ftdetect/vimperator.vim -echo '%MkVimball! ${VIMBALL} .' | vim -u NORC -N -e -s mkvimball.txt all: vimball clean: rm -f ${VIMBALL}
0xcc0xcc0xcc-vimp-labs
vimperator/contrib/vim/Makefile
Makefile
mit
206
" Vim syntax file " Language: VIMperator configuration file " Maintainer: Doug Kearns <dougkearns@gmail.com> " Last Change: 2009 Nov 14 " TODO: make this vimperator specific - shared liberator config? if exists("b:current_syntax") finish endif let s:cpo_save = &cpo set cpo&vim syn include @java...
0xcc0xcc0xcc-vimp-labs
vimperator/contrib/vim/syntax/vimperator.vim
Vim Script
mit
6,271
DIRS = muttator vimperator TARGETS = clean doc help info xpi .SILENT: all: xpi ; $(TARGETS:%=\%.%): echo MAKE $@ $(MAKE) -C $* $(@:$*.%=%) $(TARGETS): $(MAKE) $(DIRS:%=%.$@)
0xcc0xcc0xcc-vimp-labs
Makefile
Makefile
mit
181
// Header: const Name = "Muttator"; /* * We can't load our modules here, so the following code is sadly * duplicated: .w !sh vimdiff ../../*'/components/commandline-handler.js' */ // Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt...
0xcc0xcc0xcc-vimp-labs
muttator/components/commandline-handler.js
JavaScript
mit
1,528
// Copyright (c) 2008-2009 Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /* Adds support for data: URIs with chrome privileges * and fragment identifiers. * * "chrome-data:" <content-type> [; <fl...
0xcc0xcc0xcc-vimp-labs
muttator/components/protocols.js
JavaScript
mit
11,525
// Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const Name = "Muttator"; /* * We can't load our modules here, so the following code is sadly * duplicated: .w !sh vimdiff ../../*'/components/about-ha...
0xcc0xcc0xcc-vimp-labs
muttator/components/about-handler.js
JavaScript
mit
1,400
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const DEFAULT_FAVICON = "chrome://global/skin/icons/Portrait.png"; const Config = Module("config", ConfigB...
0xcc0xcc0xcc-vimp-labs
muttator/content/config.js
JavaScript
mit
10,127
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const Compose = Module("compose", { init: function () { var stateListener = { Query...
0xcc0xcc0xcc-vimp-labs
muttator/content/compose/compose.js
JavaScript
mit
3,008
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. const Mail = Module("mail", { requires: ["liberator"], init: function () { services.add("s...
0xcc0xcc0xcc-vimp-labs
muttator/content/mail.js
JavaScript
mit
47,157